./yay - no longer crashes yay

This commit is contained in:
Jguer 2017-10-25 17:16:35 +09:00
parent 61a1d46ccd
commit 83e8c54caa

3
cmd.go
View file

@ -137,6 +137,9 @@ func parser() (op string, options []string, packages []string, changedConfig boo
op = "yogurt"
for _, arg := range os.Args[1:] {
if len(arg) < 2 {
continue
}
if arg[0] == '-' && arg[1] != '-' {
switch arg {
default: