|
|
|
@ -7,7 +7,6 @@ import (
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Options struct {
|
|
|
|
|
Init bool
|
|
|
|
|
Path string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -19,14 +18,13 @@ func ParseCLI(args []string, version string) (*Options, error) {
|
|
|
|
|
|
|
|
|
|
Usage: mmd
|
|
|
|
|
|
|
|
|
|
mmd -i -- this will create your credentials
|
|
|
|
|
mmd -p <config.yaml> -- store instance and API token in config.yaml
|
|
|
|
|
|
|
|
|
|
Options:`)
|
|
|
|
|
flagSet.PrintDefaults()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
Init = flagSet.Bool("init", false, "inits new auth", flag.OptShorthand('i'))
|
|
|
|
|
Path = flagSet.String("path", "", "config path", flag.OptShorthand('p'))
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -39,7 +37,6 @@ func ParseCLI(args []string, version string) (*Options, error) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
opts := Options{
|
|
|
|
|
Init: *Init,
|
|
|
|
|
Path: *Path,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|