Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[cli] Print help when no command is specified

Neeraj Guptadcbdeca64e93
diff --git a/cli/main.go b/cli/main.go
index 88de93025a..ff78081fb8 100644
--- a/cli/main.go
+++ b/cli/main.go
@@ -75,6 +75,10 @@ func main() {
}
return
}
+ if len(os.Args) == 1 {
+ // If no arguments are passed, show help
+ os.Args = append(os.Args, "help")
+ }
cmd.Execute(&ctrl, AppVersion)
}