浏览代码

Add doc for --save

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

+ 3 - 0
cmd.go

@@ -38,6 +38,9 @@ New operations:
     yay {-G --getpkgbuild} [package(s)]
 
 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
     --bottomup           Shows AUR's packages first and then repository's
     --devel              Check development packages during sysupgrade

+ 11 - 1
yay.8

@@ -108,7 +108,12 @@ a database refresh\&. Run \fByay -Sy\fR Before this for an up to date result\&.
 .PP
 .SH "PERMANENT CONFIGURATION SETTINGS"
 .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
 \fB\-\-topdown\fR
 .RS 4
@@ -200,6 +205,11 @@ yay -S \fIfoo\fR
 Installs package \fIfoo\fR from the repos or the \fBAUR\fR\&.
 .RE
 .PP
+yay --devel --save
+.RS 4
+Sets devel to true in the config\&.
+.RE
+.PP
 yay --stats
 .RS 4
 Shows statistics for installed packages and system health\&.