arg/example/example.go

15 lines
345 B
Go
Raw Normal View History

2015-10-31 20:32:43 -05:00
package main
import "github.com/alexflint/go-arg"
func main() {
var args struct {
2015-10-31 20:48:38 -05:00
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"`
2015-10-31 20:32:43 -05:00
}
arg.MustParse(&args)
}