Add doc for --save

This commit is contained in:
morganamilo 2018-03-07 22:37:44 +00:00
parent 33b76045e7
commit 5a7654909d
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E
2 changed files with 14 additions and 1 deletions

3
cmd.go
View file

@ -38,6 +38,9 @@ New operations:
yay {-G --getpkgbuild} [package(s)] yay {-G --getpkgbuild} [package(s)]
Permanent configuration options: Permanent configuration options:
--save Causes the following options to be saved back to the
config file when used
--topdown Shows repository's packages first and then AUR's --topdown Shows repository's packages first and then AUR's
--bottomup Shows AUR's packages first and then repository's --bottomup Shows AUR's packages first and then repository's
--devel Check development packages during sysupgrade --devel Check development packages during sysupgrade

12
yay.8
View file

@ -108,7 +108,12 @@ a database refresh\&. Run \fByay -Sy\fR Before this for an up to date result\&.
.PP .PP
.SH "PERMANENT CONFIGURATION SETTINGS" .SH "PERMANENT CONFIGURATION SETTINGS"
.PP .PP
These options will be saved to disk and reapplied next time Yay is ran\&. \fB\-\-save\fR
.RS 4
Causes the following options to be saved back to the config file\&. This
provides an easy way to change config options without directly editing the
file\&.
.RE
.PP .PP
\fB\-\-topdown\fR \fB\-\-topdown\fR
.RS 4 .RS 4
@ -200,6 +205,11 @@ yay -S \fIfoo\fR
Installs package \fIfoo\fR from the repos or the \fBAUR\fR\&. Installs package \fIfoo\fR from the repos or the \fBAUR\fR\&.
.RE .RE
.PP .PP
yay --devel --save
.RS 4
Sets devel to true in the config\&.
.RE
.PP
yay --stats yay --stats
.RS 4 .RS 4
Shows statistics for installed packages and system health\&. Shows statistics for installed packages and system health\&.