Skip to content

Commit

Permalink
cmd: imp err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Jan 14, 2025
1 parent 0d7a065 commit 83586f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/cmd/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ func parseCmdLineOptions(conf *configuration) (err error) {

nonFlags := flags.Args()
if len(nonFlags) > 0 {
return fmt.Errorf("non-flag arguments: %s", nonFlags)
return fmt.Errorf("positional arguments are not allowed, please check your command line "+
"arguments; detected positional arguments: %s", nonFlags)
}

return nil
Expand Down

0 comments on commit 83586f3

Please sign in to comment.