diff options
Diffstat (limited to 'example/example.go')
| -rw-r--r-- | example/example.go | 10 |
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) } |
