diff --git a/cmd.go b/cmd.go index 64a16474..8c4b7b63 100644 --- a/cmd.go +++ b/cmd.go @@ -152,7 +152,7 @@ func parser() (op string, options []string, packages []string, changedConfig boo } } - if arg[0] == '-' && arg[1] == '-' { + if strings.HasPrefix(arg, "--") { changedConfig = true switch arg { case "--printconfig":