diff options
| author | Nick White <git@njw.name> | 2019-10-16 16:40:23 +0100 |
|---|---|---|
| committer | Nick White <git@njw.name> | 2019-10-16 16:40:23 +0100 |
| commit | ff809ad480061d9efce5ce33cda1e877cf63c936 (patch) | |
| tree | ac0ca5353f68d72bc596fe68b9f12dd0eca7e7ab /cmd | |
| parent | 0419aee83e1a3bc5f256480cc9591f19e97cbc5e (diff) | |
Ensure booktopipeline complains if given too many arguments
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/booktopipeline/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/booktopipeline/main.go b/cmd/booktopipeline/main.go index a455966..e6d08d8 100644 --- a/cmd/booktopipeline/main.go +++ b/cmd/booktopipeline/main.go @@ -54,7 +54,7 @@ func main() { flag.PrintDefaults() } flag.Parse() - if flag.NArg() < 1 { + if flag.NArg() < 1 || flag.NArg() > 3 { flag.Usage() return } |
