package main
import (
"log"
"github.com/devfacet/gocmd"
)
func main() {
flags := struct {
Command struct {} `command:"command"`
Flag string `short:"f" long:"flag" required:"true"`
}{}
_, err := gocmd.New(gocmd.Options{
Flags: &flags,
AnyError: true,
})
if err != nil {
log.Fatal(err)
}
}
# bug -f command
argument -f needs a nonempty value
# bug -f "command"
argument -f needs a nonempty value
# bug -f other