diff --git a/go-junit-report.go b/go-junit-report.go index 5c2e433..43ff964 100644 --- a/go-junit-report.go +++ b/go-junit-report.go @@ -26,6 +26,11 @@ func init() { func main() { flag.Parse() + if flag.NArg() != 0 { + fmt.Println("go-junit-report does not accept positional arguments") + os.Exit(1) + } + // Read input report, err := parser.Parse(os.Stdin, packageName) if err != nil {