diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2020-10-26 00:46:32 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2020-10-26 02:08:06 -0400 |
commit | 63d5ee70ab5d0daeff0e5455a462bcab16c9d95f (patch) | |
tree | 2382fdab3dffe5041acb5f833e0d762572aaa5bf | |
parent | 30f5b7d25f0c011fa7caf26e162cc02848ddf538 (diff) |
rename CLI option --aur -> --pur
-rw-r--r-- | README.pod | 4 | ||||
-rw-r--r-- | completions/bash.completion | 2 | ||||
-rw-r--r-- | completions/zsh.completion | 4 | ||||
-rwxr-xr-x | pacaur | 6 |
4 files changed, 8 insertions, 8 deletions
@@ -29,7 +29,7 @@ being knowledgeable about sudo and gpg configuration. Two sets of command line options are provided: commands which call the pacman binary and extend it with PUR functions B<(-S, -Ss, -Si, -Sw, -Su, -Qu, -Sc, -Scc)>, -and I<-a/--aur> can be added to only apply these to the PUR. As such, pacpur can be +and I<-p/--pur> can be added to only apply these to the PUR. As such, pacpur can be used by users who prefer to have a single tool to manage the officialand PUR repositories, or by users who prefer to keep their PUR frontend separated from pacman. @@ -45,7 +45,7 @@ Pacpur wraps all B<pacman operations> and by default extends respectively its sync, search, info, download only, system upgrade, upgrades check, clean and clean all functions to the PUR. This extension behavior is optional and can be disabled with the I<-r/--repo> flag, and used with the variable set with the -I<-a/--aur> flag. Pacpur will also pass any other pacman operations and their +I<-p/--pur> flag. Pacpur will also pass any other pacman operations and their related options to the pacman binary. =back diff --git a/completions/bash.completion b/completions/bash.completion index 9eddba1..47a2746 100644 --- a/completions/bash.completion +++ b/completions/bash.completion @@ -26,7 +26,7 @@ _pacaur() { _pacman &> /dev/null if [[ "$cur" == -* ]]; then case "$op" in - S) _arch_compgen "${COMPREPLY[@]}" "-a --aur -r --repo -e --edit --devel --foreign --noedit --rebuild --silent";; + S) _arch_compgen "${COMPREPLY[@]}" "-p --pur -r --repo -e --edit --devel --foreign --noedit --rebuild --silent";; esac else case "$op" in diff --git a/completions/zsh.completion b/completions/zsh.completion index d4064a4..22ec4fd 100644 --- a/completions/zsh.completion +++ b/completions/zsh.completion @@ -53,7 +53,7 @@ _pacaur_opts_commands=( ) _pacaur_opts_extended=( - {-a,--aur}'[Only search, build, install or clean target(s) from the PUR]' + {-p,--pur}'[Only search, build, install or clean target(s) from the PUR]' {-e,--edit}'[Edit target(s) PKGBUILD and view install script]' {-r,--repo}'[Only search, build, install or clean target(s) from the repositories]' '--foreign[Consider already installed foreign dependencies]' @@ -443,7 +443,7 @@ if [[ $words[2] != -* ]]; then else isaur=0 fi -if (( $+words[(r)--aur] || $+words[(r)-S*a*] || $isaur )); then +if (( $+words[(r)--pur] || $+words[(r)-S*p*] || $isaur )); then completion_repo='_pacaur_completions_aur_packages' elif (( $+words[(r)--repo] || $+words[(r)-S*r*] )); then completion_repo='_pacaur_completions_all_packages' @@ -1633,7 +1633,7 @@ Usage() { '' \ $"options:" \ $" pacman extension - can be used with the -S, -Ss, -Si, -Sw, -Su, -Sc, -Scc operations" \ - $" -a, --aur only search, build, install or clean target(s) from the PUR" \ + $" -p, --pur only search, build, install or clean target(s) from the PUR" \ $" -r, --repo only search, build, install or clean target(s) from the repositories" \ $" general" \ $" -e, --edit edit target(s) PKGBUILD and view install script" \ @@ -1699,7 +1699,7 @@ for ((;;)) { --ignoregroup) MapfileAdd ignoredgrps <<<"${2//,/$'\n'}" ;;& --version) operation='version' ;;& -e|--edit) pace=1 ;;& - -a|--aur) aur=1 ;;& + -p|--pur) aur=1 ;;& -r|--repo) repo=1 ;;& --@(devel|noedit|rebuild)) declare "${1#--}"=1 ;;& --literal) auropts+=("$1") ;;& @@ -1775,7 +1775,7 @@ command -v "${editor%% *}" >/dev/null || [[ "${pkgs[*]}" || ("${operation}" != @(sync|edit) && " ${pacmanarg[*]} " != *' -'[RU]' '*) ]] || ((help + refresh + upgrade + clean + info)) || error $"no targets specified (use -h for help)" "${E_FAIL}" ((! repo || ! aur)) || - error $"invalid option: '--repo' and '--aur' may not be used together" "${E_INVALID_OPTION}" + error $"invalid option: '--repo' and '--pur' may not be used together" "${E_INVALID_OPTION}" # operations case "${operation}" in |