Skip to content

Commit 1a1f665

Browse files
committed
handle no command
1 parent 10ffd11 commit 1a1f665

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ const (
2121

2222
func main() {
2323
args := os.Args[1:]
24-
24+
if len(args) == 0 {
25+
commands.Help()
26+
return
27+
}
2528
flags := utils.NewFlagSet()
2629
flags.AddBoolFlag("verbose", false)
2730

0 commit comments

Comments
 (0)