Skip to content

Commit 18f0c66

Browse files
committed
Show help if user doesn't specify any parameter
1 parent a99436b commit 18f0c66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.go

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ import (
2727

2828
func main() {
2929
uploaderCmd := cli.NewCommand()
30+
if len(os.Args) == 1 {
31+
// Show help if user doesn't specify any parameter
32+
uploaderCmd.Help()
33+
os.Exit(1)
34+
}
3035
if err := uploaderCmd.Execute(); err != nil {
3136
os.Exit(1)
3237
}

0 commit comments

Comments
 (0)