mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Swap short argument between --dotfile and --force
This commit is contained in:
@@ -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 $?
|
||||||
|
|||||||
Reference in New Issue
Block a user