error code if no directory
This commit is contained in:
parent
3d06f31b88
commit
c35555d852
3
main.go
3
main.go
|
@ -19,7 +19,10 @@ func main() {
|
||||||
Aliases: []string{"u"},
|
Aliases: []string{"u"},
|
||||||
Usage: "Scan a directory's manifests",
|
Usage: "Scan a directory's manifests",
|
||||||
Action: func(c *cli.Context) error {
|
Action: func(c *cli.Context) error {
|
||||||
|
if len(c.Args()) > 0 {
|
||||||
return scan(c)
|
return scan(c)
|
||||||
|
}
|
||||||
|
return cli.NewExitError("no directory provided", 5)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user