mirror of
https://github.com/Jguer/yay
synced 2024-09-06 16:43:03 +00:00
Default action (running yay without any args) is now to -Syu.
This commit is contained in:
parent
42b7df44e0
commit
fcf0ee34d1
|
@ -526,10 +526,8 @@ func (parser *arguments) parseCommandLine() (err error) {
|
|||
usedNext := false
|
||||
|
||||
if len(args) < 1 {
|
||||
err = fmt.Errorf("no operation specified (use -h for help)")
|
||||
return
|
||||
}
|
||||
|
||||
parser.parseShortOption("-Syu", "")
|
||||
} else {
|
||||
for k, arg := range args {
|
||||
var nextArg string
|
||||
|
||||
|
@ -556,6 +554,7 @@ func (parser *arguments) parseCommandLine() (err error) {
|
|||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if parser.op == "" {
|
||||
parser.op = "Y"
|
||||
|
|
Loading…
Reference in a new issue