浏览代码

Document fcf0ee34d17e20dc7cb99e8b6547f71c5ab522e4

morganamilo 7 年之前
父节点
当前提交
e05d86b31b
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 2 0
      cmd.go
  2. 5 0
      doc/yay.8

+ 2 - 0
cmd.go

@@ -15,6 +15,7 @@ var cmdArgs = makeArguments()
 
 func usage() {
 	fmt.Println(`Usage:
+    yay
     yay <operation> [...]
     yay <package(s)>
 
@@ -88,6 +89,7 @@ Yay specific options:
     -c --clean           Remove unneeded dependencies
        --gendb           Generates development package DB used for updating
 
+If no arguments are provided 'yay -Syu' will be performed
 If no operation is provided -Y will be assumed`)
 }
 

+ 5 - 0
doc/yay.8

@@ -9,6 +9,8 @@ yay \- AUR Helper written in go
 \fIyay\fR <operation> [options] [targets]
 .sp
 \fIyay\fR <search pattern>
+.sp
+\fIyay\fR
 .SH "DESCRIPTION"
 .sp
 Yay is a Pacman wrapper with AUR support\&. It passes options to Makepkg and
@@ -34,6 +36,9 @@ Perform yay specific print operations\&.
 Downloads PKGBUILD from ABS or AUR\&.
 .RE
 .PP
+If no arguments are provided 'yay -Syu' will be performed\&.
+.RE
+.PP
 If no operation is selected -Y will be assumed\&.
 .SH "EXTENDED PACMAN OPERATIONS"
 .PP