From 01e84dfcf504c7ac8a90593485d5bbb58a983940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Stemmer?= Date: Sun, 13 Mar 2022 23:37:56 +0000 Subject: [PATCH] Print arguments when non-flag arguments were set --- go-junit-report.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go-junit-report.go b/go-junit-report.go index 531faba..dd7003e 100644 --- a/go-junit-report.go +++ b/go-junit-report.go @@ -55,6 +55,7 @@ func main() { } if flag.NArg() != 0 { + fmt.Fprintf(os.Stderr, "invalid argument(s): %s\n", strings.Join(flag.Args(), " ")) fmt.Fprintf(os.Stderr, "%s does not accept positional arguments\n", os.Args[0]) flag.Usage() exitf("")