bad argument flag causes panic
hornpolish opened this issue · 1 comments
i mis-remembered the argument switch. the CLI panics after it gives me the help screen. perhaps just exit()?
$ ORDER=012345
$ viya4-orders-cli dep $ORDER stable -p /tmp -f try.me
Error: unknown shorthand flag: 'f' in -f
Usage:
viya4-orders-cli deploymentAssets [order number] [cadence name] [cadence version] [flags]
Aliases:
deploymentAssets, depassets, dep
Examples:
viya4-orders-cli depassets 993456 stable 2020.0.3
viya4-orders-cli dep 993456 stable
viya4-orders-cli dep 993456 stable -p $HOME/sas -n depAssets_993456_stable
Flags:
-h, --help help for deploymentAssets
Global Flags:
-c, --config string config file (default is $HOME/.viya4-orders-cli)
-n, --file-name string name of the file where you want the downloaded order asset stored
(defaults:
certs - SASiyaV4_certs.zip
license and depassets - SASiyaV4.
)
-p, --file-path string path to where you want the downloaded order asset stored (default is path to your current working directory)
-o, --output string output format - valid values:
j, json
t, text
(default "text")
2020/10/22 10:29:56 unknown shorthand flag: 'f' in -f
panic: unknown shorthand flag: 'f' in -f
goroutine 1 [running]:
log.Panic(0xc0000fdf30, 0x1, 0x1)
C:/Go/src/log/log.go:338 +0xac
github.com/sassoftware/viya4-orders-cli/cmd.Execute()
C:/Users/sapage/OneDrive - SAS/dev/viya4-orders-cli/cmd/root.go:36 +0xaa
main.main()
C:/Users/sapage/OneDrive - SAS/dev/viya4-orders-cli/main.go:9 +0x20
This is on my todo list. Thanks.