From ff809ad480061d9efce5ce33cda1e877cf63c936 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 16 Oct 2019 16:40:23 +0100 Subject: Ensure booktopipeline complains if given too many arguments --- cmd/booktopipeline/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/booktopipeline') 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 } -- cgit v1.2.1-24-ge1ad