mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-07-27 23:42:28 +02:00
feat: add cli help menus
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user