mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-05 05:00:15 -05:00
Print usage on flag error
This commit is contained in:
parent
f79a156ed8
commit
27e2e8f782
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user