mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-06-30 19:42:46 -05:00
Print usage on flag error
This commit is contained in:
@ -20,7 +20,8 @@ func main() {
|
||||
flag.Parse()
|
||||
|
||||
if flag.NArg() != 0 {
|
||||
fmt.Println("go-junit-report does not accept positional arguments")
|
||||
fmt.Fprintf(os.Stderr, "%s does not accept positional arguments\n", os.Args[0])
|
||||
flag.Usage()
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user