Using '-' doesn't raise an error

This commit is contained in:
Pietro Carrara 2017-11-27 10:46:18 -02:00
parent 3913673c8c
commit e0050a63db

2
cmd.go
View file

@ -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":