diff --git a/cmd/cmd.go b/cmd/cmd.go index 1165897..0ce65dd 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -44,7 +44,7 @@ func Execute() { os.Exit(1) } - if len(os.Args) != 1 { + if len(flag.Args()) > 0 { flag.Usage() os.Exit(1) }