summaryrefslogtreecommitdiff
path: root/example/example.go
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2015-10-31 18:48:38 -0700
committerAlex Flint <[email protected]>2015-10-31 18:48:38 -0700
commit04e96c0c6b8bb92fba62bcc5a080e7727ad3edfd (patch)
tree28fd70202bc851a7df609ebe1aac5c7d7ec47efd /example/example.go
parent22c73471e6ceb1674072338cea99c3124ca2a648 (diff)
udpate readme
Diffstat (limited to 'example/example.go')
-rw-r--r--example/example.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/example/example.go b/example/example.go
index 20efeec..1b1c7e0 100644
--- a/example/example.go
+++ b/example/example.go
@@ -4,11 +4,11 @@ import "github.com/alexflint/go-arg"
func main() {
var args struct {
- Input string `arg:"positional"`
- Output string `arg:"positional"`
- Foo string `arg:"help:this argument is foo"`
- VeryLongArgument int `arg:"help:this argument is very long"`
- Bar float64 `arg:"-b"`
+ Input string `arg:"positional"`
+ Output []string `arg:"positional"`
+ Verbose bool `arg:"-v,help:verbosity level"`
+ Dataset string `arg:"help:dataset to use"`
+ Optimize int `arg:"-O,help:optimization level"`
}
arg.MustParse(&args)
}