Skip to content
/ argv Public

➿ A cross platform library for getting the command line arguments.

Notifications You must be signed in to change notification settings

lpil/argv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

argv

A cross platform library for getting the command line arguments.

Package Version Hex Docs

gleam add argv
import argv
import gleam/io

pub fn main() {
  case argv.load().arguments {
    ["hello", name] ->
      io.println("Hello, " <> name <> "!")
    _ ->
      io.println("usage: ./program hello <name>")
  }
}