Browse Source

Update usage and man page for new flags

morganamilo 7 years ago
parent
commit
855c6c841c
2 changed files with 48 additions and 0 deletions
  1. 7 0
      cmd.go
  2. 41 0
      doc/yay.8

+ 7 - 0
cmd.go

@@ -48,6 +48,13 @@ Permanent configuration options:
     --config   <file>    pacman.conf file to use
 
     --requestsplitn <n>  Max amount of packages to query per AUR request
+    --sortby <field>     Sort AUR results by a specific field during search
+    --answerclean   <a>  Set a predetermined answer for the clean build menu
+    --answeredit    <a>  Set a predetermined answer for the edit pkgbuild menu
+    --answerupgrade <a>  Set a predetermined answer for the upgrade menu
+    --noanswerclean      Unset the answer for the clean build menu
+    --noansweredit       Unset the answer for the edit pkgbuild menu
+    --noanswerupgrade    Unset the answer for the upgrade menu
 
     --topdown            Shows repository's packages first and then AUR's
     --bottomup           Shows AUR's packages first and then repository's

+ 41 - 0
doc/yay.8

@@ -171,6 +171,47 @@ AUR query will cause an error\%. This should only make a noticeable difference
 with very large requests (>500) packages\&.
 .RE
 .PP
+\fB\-\-sortby <votes|popularity|id|baseid|name|base|submitted|modified>\fR
+.RS 4
+Sort AUR results by a specific field during search\&.
+.RE
+.PP
+\fB\-\-answerclean <All|None|Installed|NotInstalled|...>\fR
+.RS 4
+Set a predetermined answer for the clean build menu question\&. This answer
+will be used instead of reading from standard input but will be treaded exactly
+the same when parsed\&.
+.RE
+.PP
+\fB\-\-answeredit <All|None|Installed|NotInstalled|...>\fR
+.RS 4
+Set a predetermined answer for the edit pkgbuild  menu question\&. This answer
+will be used instead of reading from standard input but will be treaded exactly
+the same when parsed\&.
+.RE
+.PP
+\fB\-\-answerupgrade\fR <Repo|^Repo|None|...>
+.RS 4
+Set a predetermined answer for the upgrade  menu question\&. This answer
+will be used instead of reading from standard input but will be treaded exactly
+the same\&.
+.RE
+.PP
+\fB\-\-noanswerclean\fR
+.RS 4
+Unset the answer for the clean build menu\&.
+.RE
+.PP
+\fB\-\-noansweredit\fR
+.RS 4
+Unset the answer for the edit pkgbuild menu\&.
+.RE
+.PP
+\fB\-\-noanswerupgrade\fR
+.RS 4
+Unset the answer for the upgrade menu\&.
+.RE
+.PP
 \fB\-\-topdown\fR
 .RS 4
 Display repository packages first and then AUR packages\&.