mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Using '-' doesn't raise an error
This commit is contained in:
parent
3913673c8c
commit
e0050a63db
1 changed files with 1 additions and 1 deletions
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
|
||||
switch arg {
|
||||
case "--printconfig":
|
||||
|
|
Loading…
Reference in a new issue