Swap short argument between --dotfile and --force

This commit is contained in:
2013-10-03 23:40:21 +01:00
parent 1bfcaf8b8c
commit 615adc5a2e

View File

@@ -65,14 +65,14 @@ source "../plugins/git.sh"
# Argument Parsing # Argument Parsing
# #
DOTFILE="" # --dotfile / -f DOTFILE="" # --dotfile / -F
TARGET="" # --target / -t TARGET="" # --target / -t
HELP="" # --help / -h HELP="" # --help / -h
FORCE="" # --force / -F FORCE="" # --force / -f
VERSION="" # --version / -v VERSION="" # --version / -v
if has-argument dotfile f "$@"; then if has-argument dotfile F "$@"; then
DOTFILE="$(parse-argument dotfile f "$@")" DOTFILE="$(parse-argument dotfile F "$@")"
fi fi
if has-argument target t "$@"; then if has-argument target t "$@"; then
@@ -83,7 +83,7 @@ if has-argument help h "$@"; then
HELP="1" HELP="1"
fi fi
if has-argument force F "$@"; then if has-argument force f "$@"; then
FORCE="1" FORCE="1"
fi fi
@@ -131,6 +131,9 @@ case "$command" in
"" | "install" ) "" | "install" )
dotify-install dotify-install
;; ;;
"uninstall" | "remove" )
dotify-uninstall
;;
esac esac
exit $? exit $?