summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-10-16 16:40:23 +0100
committerNick White <git@njw.name>2019-10-16 16:40:23 +0100
commitff809ad480061d9efce5ce33cda1e877cf63c936 (patch)
treeac0ca5353f68d72bc596fe68b9f12dd0eca7e7ab
parent0419aee83e1a3bc5f256480cc9591f19e97cbc5e (diff)
Ensure booktopipeline complains if given too many arguments
-rw-r--r--cmd/booktopipeline/main.go2
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
}