mirror of
https://github.com/Jguer/yay.git
synced 2025-11-30 00:04:05 -05:00
Fixed os args
This commit is contained in:
parent
8065d83906
commit
55bb41996a
@ -62,9 +62,9 @@ func parser() (op string, options []string, packages []string, err error) {
|
|||||||
case "--topdown":
|
case "--topdown":
|
||||||
util.SortMode = util.TopDown
|
util.SortMode = util.TopDown
|
||||||
case "--complete":
|
case "--complete":
|
||||||
if os.Args[i+1] != "" {
|
if len(os.Args) > i + 3 {
|
||||||
util.Shell = os.Args[i+1]
|
util.Shell = os.Args[i+2]
|
||||||
}
|
}
|
||||||
yay.Complete()
|
yay.Complete()
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
case "--help":
|
case "--help":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user