blob: 20efeec29b29ebe1e0f0a05eebba56bbba589e48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package main
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"`
}
arg.MustParse(&args)
}
|