Closed
Description
My code (The official example):
package main
import (
"fmt"
"gopkg.in/alecthomas/kingpin.v2"
)
var (
verbose = kingpin.Flag("verbose", "Verbose mode.").Short('v').Bool()
name = kingpin.Arg("name", "Name of user.").Required().String()
)
func main() {
kingpin.Parse()
fmt.Printf("%v, %s\n", *verbose, *name)
}
My command: go run test.go @
What happens? Nothing! The program just get stuck, without any output.
What's expected? The library reports invalid syntax in command line.
Metadata
Metadata
Assignees
Labels
No labels