mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-10-16 22:07:30 +02:00
feat: add cli help menus
This commit is contained in:
4 files changed
+252
-17
No files matched your search
@@ -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