Skip to content

Commit

Permalink
cmd: fix non-flag args
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Jan 14, 2025
1 parent 712d38b commit 0d7a065
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/cmd/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,11 @@ func parseCmdLineOptions(conf *configuration) (err error) {
return err
}

nonFlags := flags.Args()
if len(nonFlags) > 0 {
return fmt.Errorf("non-flag arguments: %s", nonFlags)
}

return nil
}

Expand Down

0 comments on commit 0d7a065

Please sign in to comment.