mirror of
https://github.com/Jguer/yay.git
synced 2025-10-04 00:03:11 -04: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…
x
Reference in New Issue
Block a user