1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Rename -P / --show_path to -n / --dry_run.

Done for consistency with other Linux programs (e.g. rsync, rename).
This commit is contained in:
William Ting 2012-11-22 11:37:36 -06:00
parent 904066373b
commit 987ead6814

View File

@ -16,7 +16,7 @@ function help_msg {
echo " (If neither are specified, both bash & zsh support are installed)" echo " (If neither are specified, both bash & zsh support are installed)"
echo echo
echo " -f, --force Ignore python version check" echo " -f, --force Ignore python version check"
echo " -P, --show_path Only show installation paths, don't install anything" echo " -n, --dry_run Only show installation paths, don't install anything"
echo echo
echo "Will install autojump into:" echo "Will install autojump into:"
echo ' Binaries: $destdir$prefix/bin' echo ' Binaries: $destdir$prefix/bin'
@ -31,7 +31,7 @@ function help_msg {
echo ' - $destdir$prefix/share/zsh/site-functions' echo ' - $destdir$prefix/share/zsh/site-functions'
} }
show_path= dry_run=
auto= auto=
local= local=
force= force=
@ -86,8 +86,8 @@ while true; do
prefix= prefix=
shift shift
;; ;;
-P|--show_paths) -n|--dry_run)
show_path=true dry_run=true
shift shift
;; ;;
-p|--prefix) -p|--prefix)
@ -208,8 +208,8 @@ if [[ -z $shell ]] || [[ $shell == "zsh" ]]; then
fi fi
echo echo
if [[ $show_path ]]; then if [[ $dry_run ]]; then
echo "--show_path (-P) used, stopping" echo "--dry_run (-n) used, stopping"
exit exit
fi fi