mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Merge pull request #68 from PietroCarrara/master
Using '-' doesn't raise an error
This commit is contained in:
commit
22931a77a3
2
cmd.go
2
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
|
changedConfig = true
|
||||||
switch arg {
|
switch arg {
|
||||||
case "--printconfig":
|
case "--printconfig":
|
||||||
|
Loading…
Reference in New Issue
Block a user