Merge pull request #68 from PietroCarrara/master

Using '-' doesn't raise an error
This commit is contained in:
J Guerreiro 2017-11-28 11:51:53 +09:00 committed by GitHub
commit 22931a77a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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