qrz/vendor/github.com/gobuffalo/packr/v2/packr2/cmd/pack.go
Paul Lecuq 36c5d6f2ed
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
large change on qrz
- web service with json support
- web page
- cron service to update database infos
2020-05-09 19:09:27 +02:00

26 lines
443 B
Go

package cmd
func parseArgs(args []string) []string {
var cargs []string
for _, a := range args {
if a == "--legacy" {
globalOptions.Legacy = true
continue
}
if a == "--verbose" {
globalOptions.Verbose = true
continue
}
if a == "--silent" {
globalOptions.Silent = true
continue
}
if a == "--ignore-imports" {
globalOptions.IgnoreImports = true
continue
}
cargs = append(cargs, a)
}
return cargs
}