Default action (running yay without any args) is now to -Syu.

This commit is contained in:
Michael Düll 2018-03-31 22:55:15 +02:00
parent 42b7df44e0
commit fcf0ee34d1

View file

@ -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"