gobyexample/examples/command-line-arguments/command-line-arguments.sh
2012-10-22 09:34:34 -04:00

11 lines
297 B
Bash

# To experiment with command-line arguments it's best to
# build a binary with `go build` first.
$ go build command-line-arguments.go
$ ./command-line-arguments a b c d
[./command-line-arguments a b c d]
[a b c d]
c
# Next we'll look at more advanced command-line processing
# with flags.