diff --git a/main.go b/main.go index e482500..ea4baf2 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,10 @@ func main() { Aliases: []string{"u"}, Usage: "Scan a directory's manifests", Action: func(c *cli.Context) error { - return scan(c) + if len(c.Args()) > 0 { + return scan(c) + } + return cli.NewExitError("no directory provided", 5) }, }, }