mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
./yay - no longer crashes yay
This commit is contained in:
parent
61a1d46ccd
commit
83e8c54caa
1 changed files with 3 additions and 0 deletions
3
cmd.go
3
cmd.go
|
@ -137,6 +137,9 @@ func parser() (op string, options []string, packages []string, changedConfig boo
|
||||||
op = "yogurt"
|
op = "yogurt"
|
||||||
|
|
||||||
for _, arg := range os.Args[1:] {
|
for _, arg := range os.Args[1:] {
|
||||||
|
if len(arg) < 2 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if arg[0] == '-' && arg[1] != '-' {
|
if arg[0] == '-' && arg[1] != '-' {
|
||||||
switch arg {
|
switch arg {
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue