浏览代码

Remove deprecated flags in favor of boolean flags (#2350)

Joey Holtzman 1 年之前
父节点
当前提交
d02c45e5b6
共有 10 个文件被更改,包括 14 次插入161 次删除
  1. 1 1
      README.md
  2. 0 10
      cmd.go
  3. 5 5
      completions/bash
  4. 0 12
      completions/fish
  5. 0 12
      completions/zsh
  6. 0 59
      doc/yay.8
  7. 1 1
      main.go
  8. 1 1
      pkg/cmd/graph/main.go
  9. 5 47
      pkg/settings/args.go
  10. 1 13
      pkg/settings/parser/parser.go

+ 1 - 1
README.md

@@ -125,7 +125,7 @@ pacman -S --needed git base-devel yay
 
 
 - **Yay is not asking me to edit PKGBUILDS, and I don't like the diff menu! What can I do?**
 - **Yay is not asking me to edit PKGBUILDS, and I don't like the diff menu! What can I do?**
 
 
-  `yay --editmenu --nodiffmenu --save`
+  `yay --editmenu --diffmenu=false --save`
 
 
 - **How can I tell Yay to act only on AUR packages, or only on repo packages?**
 - **How can I tell Yay to act only on AUR packages, or only on repo packages?**
 
 

+ 0 - 10
cmd.go

@@ -92,16 +92,12 @@ Permanent configuration options:
     --cleanmenu           Give the option to clean build PKGBUILDS
     --cleanmenu           Give the option to clean build PKGBUILDS
     --diffmenu            Give the option to show diffs for build files
     --diffmenu            Give the option to show diffs for build files
     --editmenu            Give the option to edit/view PKGBUILDS
     --editmenu            Give the option to edit/view PKGBUILDS
-    --nocleanmenu         Don't clean build PKGBUILDS
-    --nodiffmenu          Don't show diffs for build files
-    --noeditmenu          Don't edit/view PKGBUILDS
     --askremovemake       Ask to remove makedepends after install
     --askremovemake       Ask to remove makedepends after install
     --askyesremovemake    Ask to remove makedepends after install("Y" as default)
     --askyesremovemake    Ask to remove makedepends after install("Y" as default)
     --removemake          Remove makedepends after install
     --removemake          Remove makedepends after install
     --noremovemake        Don't remove makedepends after install
     --noremovemake        Don't remove makedepends after install
 
 
     --cleanafter          Remove package sources after successful install
     --cleanafter          Remove package sources after successful install
-    --nocleanafter        Do not remove package sources after successful build
     --keepsrc             Keep pkg/ and src/ after building packages
     --keepsrc             Keep pkg/ and src/ after building packages
     --bottomup            Shows AUR's packages first and then repository's
     --bottomup            Shows AUR's packages first and then repository's
     --topdown             Shows repository's packages first and then AUR's
     --topdown             Shows repository's packages first and then AUR's
@@ -109,7 +105,6 @@ Permanent configuration options:
     --doublelineresults   List each search result on two lines, like pacman
     --doublelineresults   List each search result on two lines, like pacman
 
 
     --devel               Check development packages during sysupgrade
     --devel               Check development packages during sysupgrade
-    --nodevel             Do not check development packages
     --rebuild             Always build target packages
     --rebuild             Always build target packages
     --rebuildall          Always build all AUR packages
     --rebuildall          Always build all AUR packages
     --norebuild           Skip package build if in cache and up to date
     --norebuild           Skip package build if in cache and up to date
@@ -118,19 +113,14 @@ Permanent configuration options:
     --noredownload        Skip pkgbuild download if in cache and up to date
     --noredownload        Skip pkgbuild download if in cache and up to date
     --redownloadall       Always download pkgbuilds of all AUR packages
     --redownloadall       Always download pkgbuilds of all AUR packages
     --provides            Look for matching providers when searching for packages
     --provides            Look for matching providers when searching for packages
-    --noprovides          Just look for packages by pkgname
     --pgpfetch            Prompt to import PGP keys from PKGBUILDs
     --pgpfetch            Prompt to import PGP keys from PKGBUILDs
-    --nopgpfetch          Don't prompt to import PGP keys
     --useask              Automatically resolve conflicts using pacman's ask flag
     --useask              Automatically resolve conflicts using pacman's ask flag
-    --nouseask            Confirm conflicts manually during the install
 
 
     --sudo                <file>  sudo command to use
     --sudo                <file>  sudo command to use
     --sudoflags           <flags> Pass arguments to sudo
     --sudoflags           <flags> Pass arguments to sudo
     --sudoloop            Loop sudo calls in the background to avoid timeout
     --sudoloop            Loop sudo calls in the background to avoid timeout
-    --nosudoloop          Do not loop sudo calls in the background
 
 
     --timeupdate          Check packages' AUR page for changes during sysupgrade
     --timeupdate          Check packages' AUR page for changes during sysupgrade
-    --notimeupdate        Do not check packages' AUR page for changes
 
 
 show specific options:
 show specific options:
     -c --complete         Used for completions
     -c --complete         Used for completions

+ 5 - 5
completions/bash

@@ -69,14 +69,14 @@ _yay() {
   ##yay stuff
   ##yay stuff
   common=('arch cachedir color config confirm dbpath debug gpgdir help hookdir logfile
   common=('arch cachedir color config confirm dbpath debug gpgdir help hookdir logfile
           noconfirm noprogressbar noscriptlet quiet root verbose
           noconfirm noprogressbar noscriptlet quiet root verbose
-          makepkg pacman git gpg gpgflags config requestsplitn sudoloop nosudoloop
+          makepkg pacman git gpg gpgflags config requestsplitn sudoloop
           redownload noredownload redownloadall rebuild rebuildall rebuildtree norebuild sortby
           redownload noredownload redownloadall rebuild rebuildall rebuildtree norebuild sortby
           singlelineresults doublelineresults answerclean answerdiff answeredit answerupgrade noanswerclean noanswerdiff
           singlelineresults doublelineresults answerclean answerdiff answeredit answerupgrade noanswerclean noanswerdiff
-          noansweredit noanswerupgrade cleanmenu diffmenu editmenu cleanafter nocleanafter keepsrc
-          nocleanmenu nodiffmenu provides noprovides pgpfetch nopgpfetch
-          useask nouseask combinedupgrade nocombinedupgrade aur repo makepkgconf
+          noansweredit noanswerupgrade cleanmenu diffmenu editmenu cleanafter keepsrc
+          provides pgpfetch
+          useask combinedupgrade aur repo makepkgconf
           nomakepkgconf askremovemake askyesremovemake removemake noremovemake completioninterval aururl aurrpcurl
           nomakepkgconf askremovemake askyesremovemake removemake noremovemake completioninterval aururl aurrpcurl
-          searchby batchinstall nobatchinstall'
+          searchby batchinstall'
     'b d h q r v')
     'b d h q r v')
   yays=('clean gendb' 'c')
   yays=('clean gendb' 'c')
   show=('complete defaultconfig currentconfig stats news' 'c d g s w')
   show=('complete defaultconfig currentconfig stats news' 'c d g s w')

+ 0 - 12
completions/fish

@@ -216,9 +216,6 @@ complete -c $progname -n "not $noopt" -l noanswerupgrade -d 'Unset the answer fo
 complete -c $progname -n "not $noopt" -l cleanmenu -d 'Give the option to clean build PKGBUILDS' -f
 complete -c $progname -n "not $noopt" -l cleanmenu -d 'Give the option to clean build PKGBUILDS' -f
 complete -c $progname -n "not $noopt" -l diffmenu -d 'Give the option to show diffs for build files' -f
 complete -c $progname -n "not $noopt" -l diffmenu -d 'Give the option to show diffs for build files' -f
 complete -c $progname -n "not $noopt" -l editmenu -d 'Give the option to edit/view PKGBUILDS' -f
 complete -c $progname -n "not $noopt" -l editmenu -d 'Give the option to edit/view PKGBUILDS' -f
-complete -c $progname -n "not $noopt" -l nocleanmenu -d 'Do not clean build PKGBUILDS' -f
-complete -c $progname -n "not $noopt" -l nodiffmenu -d 'Do not show diffs for build files' -f
-complete -c $progname -n "not $noopt" -l noeditmenu -d 'Do not edit/view PKGBUILDS' -f
 complete -c $progname -n "not $noopt" -l askremovemake -d 'Ask to remove make deps after install' -f
 complete -c $progname -n "not $noopt" -l askremovemake -d 'Ask to remove make deps after install' -f
 complete -c $progname -n "not $noopt" -l askyesremovemake -d 'Ask to remove make deps after install(with "Y" as default)' -f
 complete -c $progname -n "not $noopt" -l askyesremovemake -d 'Ask to remove make deps after install(with "Y" as default)' -f
 complete -c $progname -n "not $noopt" -l removemake -d 'Remove make deps after install' -f
 complete -c $progname -n "not $noopt" -l removemake -d 'Remove make deps after install' -f
@@ -228,25 +225,17 @@ complete -c $progname -n "not $noopt" -l bottomup -d 'Shows aur packages first a
 complete -c $progname -n "not $noopt" -l singlelineresults -d 'List each search result on its own line' -f
 complete -c $progname -n "not $noopt" -l singlelineresults -d 'List each search result on its own line' -f
 complete -c $progname -n "not $noopt" -l doublelineresults -d 'List each search result on two lines, like pacman' -f
 complete -c $progname -n "not $noopt" -l doublelineresults -d 'List each search result on two lines, like pacman' -f
 complete -c $progname -n "not $noopt" -l devel -d 'Check -git/-svn/-hg development version' -f
 complete -c $progname -n "not $noopt" -l devel -d 'Check -git/-svn/-hg development version' -f
-complete -c $progname -n "not $noopt" -l nodevel -d 'Disable development version checking' -f
 complete -c $progname -n "not $noopt" -l cleanafter -d 'Clean package sources after successful build' -f
 complete -c $progname -n "not $noopt" -l cleanafter -d 'Clean package sources after successful build' -f
-complete -c $progname -n "not $noopt" -l nocleanafter -d 'Disable package sources cleaning' -f
 complete -c $progname -n "not $noopt" -l keepsrc -d 'Keep pkg/ and src/ after building packages' -f
 complete -c $progname -n "not $noopt" -l keepsrc -d 'Keep pkg/ and src/ after building packages' -f
 complete -c $progname -n "not $noopt" -l timeupdate -d 'Check package modification date and version' -f
 complete -c $progname -n "not $noopt" -l timeupdate -d 'Check package modification date and version' -f
-complete -c $progname -n "not $noopt" -l notimeupdate -d 'Check only package version change' -f
 complete -c $progname -n "not $noopt" -l redownload -d 'Redownload PKGBUILD of package even if up-to-date' -f
 complete -c $progname -n "not $noopt" -l redownload -d 'Redownload PKGBUILD of package even if up-to-date' -f
 complete -c $progname -n "not $noopt" -l redownloadall -d 'Redownload PKGBUILD of package and deps even if up-to-date' -f
 complete -c $progname -n "not $noopt" -l redownloadall -d 'Redownload PKGBUILD of package and deps even if up-to-date' -f
 complete -c $progname -n "not $noopt" -l noredownload -d 'Do not redownload up-to-date PKGBUILDs' -f
 complete -c $progname -n "not $noopt" -l noredownload -d 'Do not redownload up-to-date PKGBUILDs' -f
 complete -c $progname -n "not $noopt" -l provides -d 'Look for matching providers when searching for packages' -f
 complete -c $progname -n "not $noopt" -l provides -d 'Look for matching providers when searching for packages' -f
-complete -c $progname -n "not $noopt" -l noprovides -d 'Just look for packages by pkgname' -f
 complete -c $progname -n "not $noopt" -l pgpfetch -d 'Prompt to import PGP keys from PKGBUILDs' -f
 complete -c $progname -n "not $noopt" -l pgpfetch -d 'Prompt to import PGP keys from PKGBUILDs' -f
-complete -c $progname -n "not $noopt" -l nopgpfetch -d 'Do not prompt to import PGP keys' -f
 complete -c $progname -n "not $noopt" -l useask -d 'Automatically resolve conflicts using pacmans ask flag' -f
 complete -c $progname -n "not $noopt" -l useask -d 'Automatically resolve conflicts using pacmans ask flag' -f
-complete -c $progname -n "not $noopt" -l nouseask -d 'Confirm conflicts manually during the install' -f
 complete -c $progname -n "not $noopt" -l combinedupgrade -d 'Refresh then perform the repo and AUR upgrade together' -f
 complete -c $progname -n "not $noopt" -l combinedupgrade -d 'Refresh then perform the repo and AUR upgrade together' -f
-complete -c $progname -n "not $noopt" -l nocombinedupgrade -d 'Perform the repo upgrade and AUR upgrade separately' -f
 complete -c $progname -n "not $noopt" -l batchinstall -d 'Build multiple AUR packages then install them together' -f
 complete -c $progname -n "not $noopt" -l batchinstall -d 'Build multiple AUR packages then install them together' -f
-complete -c $progname -n "not $noopt" -l nobatchinstall -d 'Build and install each AUR package one by one' -f
 complete -c $progname -n "not $noopt" -l rebuild -d 'Always build target packages' -f
 complete -c $progname -n "not $noopt" -l rebuild -d 'Always build target packages' -f
 complete -c $progname -n "not $noopt" -l rebuildall -d 'Always build all AUR packages' -f
 complete -c $progname -n "not $noopt" -l rebuildall -d 'Always build all AUR packages' -f
 complete -c $progname -n "not $noopt" -l rebuildtree -d 'Always build all AUR packages even if installed' -f
 complete -c $progname -n "not $noopt" -l rebuildtree -d 'Always build all AUR packages even if installed' -f
@@ -254,4 +243,3 @@ complete -c $progname -n "not $noopt" -l norebuild -d 'Skip package build if in
 complete -c $progname -n "not $noopt" -l mflags -d 'Pass the following options to makepkg' -f
 complete -c $progname -n "not $noopt" -l mflags -d 'Pass the following options to makepkg' -f
 complete -c $progname -n "not $noopt" -l gpgflags -d 'Pass the following options to gpg' -f
 complete -c $progname -n "not $noopt" -l gpgflags -d 'Pass the following options to gpg' -f
 complete -c $progname -n "not $noopt" -l sudoloop -d 'Loop sudo calls in the background to avoid timeout' -f
 complete -c $progname -n "not $noopt" -l sudoloop -d 'Loop sudo calls in the background to avoid timeout' -f
-complete -c $progname -n "not $noopt" -l nosudoloop -d 'Do not loop sudo calls in the background' -f

+ 0 - 12
completions/zsh

@@ -70,9 +70,6 @@ _pacman_opts_common=(
 	'--cleanmenu[Give the option to clean build PKGBUILDS]'
 	'--cleanmenu[Give the option to clean build PKGBUILDS]'
 	'--diffmenu[Give the option to show diffs for build files]'
 	'--diffmenu[Give the option to show diffs for build files]'
 	'--editmenu[Give the option to edit/view PKGBUILDS]'
 	'--editmenu[Give the option to edit/view PKGBUILDS]'
-	"--nocleanmenu[Don't clean build PKGBUILDS]"
-	"--nodiffmenu[Don't show diffs for build files]"
-	"--noeditmenu[Don't edit/view PKGBUILDS]"
 	"--askremovemake[Ask to remove makedepends after install]"
 	"--askremovemake[Ask to remove makedepends after install]"
 	"--askyesremovemake[Ask to remove makedepends after install(with "Y" as default)]"
 	"--askyesremovemake[Ask to remove makedepends after install(with "Y" as default)]"
 	"--removemake[Remove makedepends after install]"
 	"--removemake[Remove makedepends after install]"
@@ -83,35 +80,26 @@ _pacman_opts_common=(
 	'--singlelineresults[List each search result on its own line]'
 	'--singlelineresults[List each search result on its own line]'
 	'--doublelineresults[List each search result on two lines, like pacman]'
 	'--doublelineresults[List each search result on two lines, like pacman]'
 	'--devel[Check -git/-svn/-hg development version]'
 	'--devel[Check -git/-svn/-hg development version]'
-	'--nodevel[Disable development version checking]'
 	'--cleanafter[Clean package sources after successful build]'
 	'--cleanafter[Clean package sources after successful build]'
-	'--nocleanafter[Disable package sources cleaning after successful build]'
 	'--keepsrc[Keep pkg/ and src/ after building packages]'
 	'--keepsrc[Keep pkg/ and src/ after building packages]'
 	'--timeupdate[Check packages modification date and version]'
 	'--timeupdate[Check packages modification date and version]'
-	'--notimeupdate[Check only package version change]'
 	'--redownload[Always download pkgbuilds of targets]'
 	'--redownload[Always download pkgbuilds of targets]'
 	'--redownloadall[Always download pkgbuilds of all AUR packages]'
 	'--redownloadall[Always download pkgbuilds of all AUR packages]'
 	'--noredownload[Skip pkgbuild download if in cache and up to date]'
 	'--noredownload[Skip pkgbuild download if in cache and up to date]'
 	'--rebuild[Always build target packages]'
 	'--rebuild[Always build target packages]'
 	'--rebuildall[Always build all AUR packages]'
 	'--rebuildall[Always build all AUR packages]'
 	'--provides[Look for matching providers when searching for packages]'
 	'--provides[Look for matching providers when searching for packages]'
-	'--noprovides[Just look for packages by pkgname]'
 	'--pgpfetch[Prompt to import PGP keys from PKGBUILDs]'
 	'--pgpfetch[Prompt to import PGP keys from PKGBUILDs]'
-	"--nopgpfetch[Don't prompt to import PGP keys]"
 	"--useask[Automatically resolve conflicts using pacman's ask flag]"
 	"--useask[Automatically resolve conflicts using pacman's ask flag]"
-	'--nouseask[Confirm conflicts manually during the install]'
 	'--combinedupgrade[Refresh then perform the repo and AUR upgrade together]'
 	'--combinedupgrade[Refresh then perform the repo and AUR upgrade together]'
-	'--nocombinedupgrade[Perform the repo upgrade and AUR upgrade separately]'
 	'--rebuildtree[Always build all AUR packages even if installed]'
 	'--rebuildtree[Always build all AUR packages even if installed]'
 	'--norebuild[Skip package build if in cache and up to date]'
 	'--norebuild[Skip package build if in cache and up to date]'
 	'--mflags[Pass arguments to makepkg]:mflags'
 	'--mflags[Pass arguments to makepkg]:mflags'
 	'--gpgflags[Pass arguments to gpg]:gpgflags'
 	'--gpgflags[Pass arguments to gpg]:gpgflags'
 	'--sudoloop[Loop sudo calls in the background to avoid timeout]'
 	'--sudoloop[Loop sudo calls in the background to avoid timeout]'
-	'--nosudoloop[Do not loop sudo calls in the background]'
 	'--searchby[Search for packages using a specified field]'
 	'--searchby[Search for packages using a specified field]'
 	'--sortby[Sort AUR results by a specific field during search]'
 	'--sortby[Sort AUR results by a specific field during search]'
 	'--batchinstall[Build multiple AUR packages then install them together]'
 	'--batchinstall[Build multiple AUR packages then install them together]'
-	'--nobatchinstall[Build and install each AUR package one by one]'
 )
 )
 
 
 # options for passing to _arguments: options for --upgrade commands
 # options for passing to _arguments: options for --upgrade commands

+ 0 - 59
doc/yay.8

@@ -314,18 +314,6 @@ before building.
 recommended to edit pkgbuild variables unless you know what you are doing.
 recommended to edit pkgbuild variables unless you know what you are doing.
 
 
 .TP
 .TP
-.B \-\-nocleanmenu *Deprecated*
-Do not show the clean menu.
-
-.TP
-.B \-\-nodiffmenu *Deprecated*
-Do not show the diff menu.
-
-.TP
-.B \-\-noeditmenu *Deprecated*
-Do not show the edit menu.
-
-.TP
 .B \-\-askremovemake
 .B \-\-askremovemake
 Ask to remove makedepends after installing packages.
 Ask to remove makedepends after installing packages.
 
 
@@ -375,10 +363,6 @@ If 'devel' is enabled in the configuration file, you can temporarily disable it
 using '--devel=false' on the command line
 using '--devel=false' on the command line
 
 
 .TP
 .TP
-.B \-\-nodevel *Deprecated*
-Do not check for development packages updates during sysupgrade.
-
-.TP
 .B \-\-cleanafter
 .B \-\-cleanafter
 Remove untracked files after installation.
 Remove untracked files after installation.
 
 
@@ -387,10 +371,6 @@ This allows VCS packages to easily pull an update
 instead of having to reclone the entire repo.
 instead of having to reclone the entire repo.
 
 
 .TP
 .TP
-.B \-\-nocleanafter *Deprecated*
-Do not remove package sources after successful Install.
-
-.TP
 .B \-\-keepsrc
 .B \-\-keepsrc
 Keep pkg/ and src/ after building packages
 Keep pkg/ and src/ after building packages
 
 
@@ -400,18 +380,10 @@ During sysupgrade also compare the build time of installed packages against
 the last modification time of each package's AUR page.
 the last modification time of each package's AUR page.
 
 
 .TP
 .TP
-.B \-\-notimeupdate *Deprecated*
-Do not consider build times during sysupgrade.
-
-.TP
 .B \-\-separatesources
 .B \-\-separatesources
 Separate query results by source, AUR and sync
 Separate query results by source, AUR and sync
 
 
 .TP
 .TP
-.B \-\-noseparatesources *Deprecated*
-Do not separate query results by source for searching
-
-.TP
 .B \-\-redownload
 .B \-\-redownload
 Always download pkgbuilds of targets even when a copy is available in cache.
 Always download pkgbuilds of targets even when a copy is available in cache.
 
 
@@ -432,23 +404,11 @@ providers are found a menu will appear prompting you to pick one. This
 increases dependency resolve time although this should not be noticeable.
 increases dependency resolve time although this should not be noticeable.
 
 
 .TP
 .TP
-.B \-\-noprovides *Deprecated*
-Do not look for matching providers when searching for AUR packages.
-Yay will never show its provider menu but Pacman will still show its
-provider menu for repo packages.
-
-.TP
 .B \-\-pgpfetch
 .B \-\-pgpfetch
 Prompt to import unknown PGP keys from the \fBvalidpgpkeys\fR field of each
 Prompt to import unknown PGP keys from the \fBvalidpgpkeys\fR field of each
 PKGBUILD.
 PKGBUILD.
 
 
 .TP
 .TP
-.B \-\-nopgpfetch *Deprecated*
-Do not prompt to import unknown PGP keys. This is likely to cause a build
-failure unless using options such as \fB\-\-skippgpcheck\fR or a customized
-gpg config\%.
-
-.TP
 .B \-\-useask
 .B \-\-useask
 Use pacman's --ask flag to automatically confirm package conflicts. Yay lists
 Use pacman's --ask flag to automatically confirm package conflicts. Yay lists
 conflicts ahead of time. It is possible that Yay does not detect
 conflicts ahead of time. It is possible that Yay does not detect
@@ -456,11 +416,6 @@ a conflict, causing a package to be removed without the user's confirmation.
 However, this is very unlikely.
 However, this is very unlikely.
 
 
 .TP
 .TP
-.B \-\-nouseask *Deprecated*
-Manually resolve package conflicts during the install. Packages which do not
-conflict will not need to be confined manually.
-
-.TP
 .B \-\-combinedupgrade
 .B \-\-combinedupgrade
 During sysupgrade, Yay will first perform a refresh, then show
 During sysupgrade, Yay will first perform a refresh, then show
 its combined menu of repo and AUR packages that will be upgraded. Then after
 its combined menu of repo and AUR packages that will be upgraded. Then after
@@ -472,12 +427,6 @@ the user's responsibility to either resolve the reason Yay exited or run
 a sysupgrade through pacman directly.
 a sysupgrade through pacman directly.
 
 
 .TP
 .TP
-.B \-\-nocombinedupgrade *Deprecated*
-During sysupgrade, Pacman \-Syu will be called, then the AUR upgrade will
-start. This means the upgrade menu and pkgbuild review will be performed
-after the sysupgrade has finished.
-
-.TP
 .B \-\-batchinstall
 .B \-\-batchinstall
 When building and installing AUR packages instead of installing each package
 When building and installing AUR packages instead of installing each package
 after building, queue each package for install. Then once either all packages
 after building, queue each package for install. Then once either all packages
@@ -485,10 +434,6 @@ are built or a package in the build queue is needed as a dependency to build
 another package, install all the packages in the install queue.
 another package, install all the packages in the install queue.
 
 
 .TP
 .TP
-.B \-\-nobatchinstall *Deprecated*
-Always install AUR packages immediately after building them.
-
-.TP
 .B \-\-rebuild
 .B \-\-rebuild
 Always build target packages even when a copy is available in cache.
 Always build target packages even when a copy is available in cache.
 
 
@@ -541,10 +486,6 @@ separated list that is quoted by the shell.
 Loop sudo calls in the background to prevent sudo from timing out during long
 Loop sudo calls in the background to prevent sudo from timing out during long
 builds.
 builds.
 
 
-.TP
-.B \-\-nosudoloop *Deprecated*
-Do not loop sudo calls in the background.
-
 .SH EXAMPLES
 .SH EXAMPLES
 .TP
 .TP
 yay \fIfoo\fR
 yay \fIfoo\fR

+ 1 - 1
main.go

@@ -81,7 +81,7 @@ func main() {
 	cmdArgs := parser.MakeArguments()
 	cmdArgs := parser.MakeArguments()
 
 
 	// Parse command line
 	// Parse command line
-	if err = cfg.ParseCommandLine(cmdArgs, fallbackLog); err != nil {
+	if err = cfg.ParseCommandLine(cmdArgs); err != nil {
 		if str := err.Error(); str != "" {
 		if str := err.Error(); str != "" {
 			fallbackLog.Errorln(str)
 			fallbackLog.Errorln(str)
 		}
 		}

+ 1 - 1
pkg/cmd/graph/main.go

@@ -25,7 +25,7 @@ func handleCmd(logger *text.Logger) error {
 	}
 	}
 
 
 	cmdArgs := parser.MakeArguments()
 	cmdArgs := parser.MakeArguments()
-	if errP := cfg.ParseCommandLine(cmdArgs, logger); errP != nil {
+	if errP := cfg.ParseCommandLine(cmdArgs); errP != nil {
 		return errP
 		return errP
 	}
 	}
 
 

+ 5 - 47
pkg/settings/args.go

@@ -5,24 +5,21 @@ import (
 	"strings"
 	"strings"
 
 
 	"github.com/Jguer/yay/v12/pkg/settings/parser"
 	"github.com/Jguer/yay/v12/pkg/settings/parser"
-	"github.com/Jguer/yay/v12/pkg/text"
-
-	"github.com/leonelquinteros/gotext"
 )
 )
 
 
-func (c *Configuration) ParseCommandLine(a *parser.Arguments, logger *text.Logger) error {
+func (c *Configuration) ParseCommandLine(a *parser.Arguments) error {
 	if err := a.Parse(); err != nil {
 	if err := a.Parse(); err != nil {
 		return err
 		return err
 	}
 	}
 
 
-	c.extractYayOptions(a, logger)
+	c.extractYayOptions(a)
 
 
 	return nil
 	return nil
 }
 }
 
 
-func (c *Configuration) extractYayOptions(a *parser.Arguments, logger *text.Logger) {
+func (c *Configuration) extractYayOptions(a *parser.Arguments) {
 	for option, value := range a.Options {
 	for option, value := range a.Options {
-		if c.handleOption(option, value.First(), logger) {
+		if c.handleOption(option, value.First()) {
 			a.DelArg(option)
 			a.DelArg(option)
 		}
 		}
 	}
 	}
@@ -44,7 +41,7 @@ func (c *Configuration) extractYayOptions(a *parser.Arguments, logger *text.Logg
 	}
 	}
 }
 }
 
 
-func (c *Configuration) handleOption(option, value string, logger *text.Logger) bool {
+func (c *Configuration) handleOption(option, value string) bool {
 	boolValue, err := strconv.ParseBool(value)
 	boolValue, err := strconv.ParseBool(value)
 	if err != nil {
 	if err != nil {
 		boolValue = true
 		boolValue = true
@@ -59,9 +56,6 @@ func (c *Configuration) handleOption(option, value string, logger *text.Logger)
 		c.SaveConfig = boolValue
 		c.SaveConfig = boolValue
 	case "afterclean", "cleanafter":
 	case "afterclean", "cleanafter":
 		c.CleanAfter = boolValue
 		c.CleanAfter = boolValue
-	case "noafterclean", "nocleanafter":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--cleanafter=false' instead", option))
-		c.CleanAfter = !boolValue
 	case "keepsrc":
 	case "keepsrc":
 		c.KeepSrc = boolValue
 		c.KeepSrc = boolValue
 	case "debug":
 	case "debug":
@@ -69,14 +63,8 @@ func (c *Configuration) handleOption(option, value string, logger *text.Logger)
 		return !boolValue
 		return !boolValue
 	case "devel":
 	case "devel":
 		c.Devel = boolValue
 		c.Devel = boolValue
-	case "nodevel":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--devel=false' instead", option))
-		c.Devel = !boolValue
 	case "timeupdate":
 	case "timeupdate":
 		c.TimeUpdate = boolValue
 		c.TimeUpdate = boolValue
-	case "notimeupdate":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--timeupdate=false' instead", option))
-		c.TimeUpdate = !boolValue
 	case "topdown":
 	case "topdown":
 		c.BottomUp = false
 		c.BottomUp = false
 	case "bottomup":
 	case "bottomup":
@@ -114,9 +102,6 @@ func (c *Configuration) handleOption(option, value string, logger *text.Logger)
 		c.ReBuild = parser.RebuildModeNo
 		c.ReBuild = parser.RebuildModeNo
 	case "batchinstall":
 	case "batchinstall":
 		c.BatchInstall = boolValue
 		c.BatchInstall = boolValue
-	case "nobatchinstall":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--batchinstall=false' instead", option))
-		c.BatchInstall = !boolValue
 	case "answerclean":
 	case "answerclean":
 		c.AnswerClean = value
 		c.AnswerClean = value
 	case "noanswerclean":
 	case "noanswerclean":
@@ -168,44 +153,20 @@ func (c *Configuration) handleOption(option, value string, logger *text.Logger)
 		}
 		}
 	case "sudoloop":
 	case "sudoloop":
 		c.SudoLoop = boolValue
 		c.SudoLoop = boolValue
-	case "nosudoloop":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--sudoloop=false' instead", option))
-		c.SudoLoop = !boolValue
 	case "provides":
 	case "provides":
 		c.Provides = boolValue
 		c.Provides = boolValue
-	case "noprovides":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--provides=false' instead", option))
-		c.Provides = !boolValue
 	case "pgpfetch":
 	case "pgpfetch":
 		c.PGPFetch = boolValue
 		c.PGPFetch = boolValue
-	case "nopgpfetch":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--pgpfetch=false' instead", option))
-		c.PGPFetch = !boolValue
 	case "cleanmenu":
 	case "cleanmenu":
 		c.CleanMenu = boolValue
 		c.CleanMenu = boolValue
-	case "nocleanmenu":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--cleanmenu=false' instead", option))
-		c.CleanMenu = !boolValue
 	case "diffmenu":
 	case "diffmenu":
 		c.DiffMenu = boolValue
 		c.DiffMenu = boolValue
-	case "nodiffmenu":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--diffmenu=false' instead", option))
-		c.DiffMenu = !boolValue
 	case "editmenu":
 	case "editmenu":
 		c.EditMenu = boolValue
 		c.EditMenu = boolValue
-	case "noeditmenu":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--editmenu=false' instead", option))
-		c.EditMenu = !boolValue
 	case "useask":
 	case "useask":
 		c.UseAsk = boolValue
 		c.UseAsk = boolValue
-	case "nouseask":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--useask=false' instead", option))
-		c.UseAsk = !boolValue
 	case "combinedupgrade":
 	case "combinedupgrade":
 		c.CombinedUpgrade = boolValue
 		c.CombinedUpgrade = boolValue
-	case "nocombinedupgrade":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--combinedupgrade=false' instead", option))
-		c.CombinedUpgrade = !boolValue
 	case "a", "aur":
 	case "a", "aur":
 		c.Mode = parser.ModeAUR
 		c.Mode = parser.ModeAUR
 	case "repo":
 	case "repo":
@@ -220,9 +181,6 @@ func (c *Configuration) handleOption(option, value string, logger *text.Logger)
 		c.RemoveMake = "askyes"
 		c.RemoveMake = "askyes"
 	case "separatesources":
 	case "separatesources":
 		c.SeparateSources = boolValue
 		c.SeparateSources = boolValue
-	case "noseparatesources":
-		logger.Warnln(gotext.Get("'--%s' is deprecated. Use '--separatesources=false' instead", option))
-		c.SeparateSources = !boolValue
 	default:
 	default:
 		return false
 		return false
 	}
 	}

+ 1 - 13
pkg/settings/parser/parser.go

@@ -377,12 +377,9 @@ func isArg(arg string) bool {
 	case "aurrpcurl":
 	case "aurrpcurl":
 	case "save":
 	case "save":
 	case "afterclean", "cleanafter":
 	case "afterclean", "cleanafter":
-	case "noafterclean", "nocleanafter":
 	case "keepsrc":
 	case "keepsrc":
 	case "devel":
 	case "devel":
-	case "nodevel":
 	case "timeupdate":
 	case "timeupdate":
-	case "notimeupdate":
 	case "topdown":
 	case "topdown":
 	case "bottomup":
 	case "bottomup":
 	case "completioninterval":
 	case "completioninterval":
@@ -396,7 +393,6 @@ func isArg(arg string) bool {
 	case "rebuildtree":
 	case "rebuildtree":
 	case "norebuild":
 	case "norebuild":
 	case "batchinstall":
 	case "batchinstall":
-	case "nobatchinstall":
 	case "answerclean":
 	case "answerclean":
 	case "noanswerclean":
 	case "noanswerclean":
 	case "answerdiff":
 	case "answerdiff":
@@ -421,21 +417,13 @@ func isArg(arg string) bool {
 	case "sudoflags":
 	case "sudoflags":
 	case "requestsplitn":
 	case "requestsplitn":
 	case "sudoloop":
 	case "sudoloop":
-	case "nosudoloop":
 	case "provides":
 	case "provides":
-	case "noprovides":
 	case "pgpfetch":
 	case "pgpfetch":
-	case "nopgpfetch":
 	case "cleanmenu":
 	case "cleanmenu":
-	case "nocleanmenu":
 	case "diffmenu":
 	case "diffmenu":
-	case "nodiffmenu":
 	case "editmenu":
 	case "editmenu":
-	case "noeditmenu":
 	case "useask":
 	case "useask":
-	case "nouseask":
 	case "combinedupgrade":
 	case "combinedupgrade":
-	case "nocombinedupgrade":
 	case "a", "aur":
 	case "a", "aur":
 	case "repo":
 	case "repo":
 	case "removemake":
 	case "removemake":
@@ -450,7 +438,7 @@ func isArg(arg string) bool {
 	case "defaultconfig":
 	case "defaultconfig":
 	case "singlelineresults":
 	case "singlelineresults":
 	case "doublelineresults":
 	case "doublelineresults":
-	case "separatesources", "noseparatesources":
+	case "separatesources":
 	default:
 	default:
 		return false
 		return false
 	}
 	}