feat: add cli help menus

This commit is contained in:
2026-07-12 00:06:18 +02:00
parent 150b5b5d85
commit 99c531928e
4 changed files with 252 additions and 17 deletions
+4
View File
@@ -25,6 +25,7 @@ type globalOptions struct {
noProgress bool
noSSLVerify bool
verbose int
help bool
command string
commandArgs []string
}
@@ -45,6 +46,9 @@ func parseGlobalArgs(args []string) (globalOptions, error) {
}
switch {
case isHelpArg(arg):
opts.help = true
return opts, nil
case arg == "-ndb" || arg == "--no-db":
opts.noDB = true
case arg == "--no-progress":