Add --dry-run argument

This commit is contained in:
2013-10-03 23:17:36 +01:00
parent 615adc5a2e
commit 576a012332

View File

@@ -67,8 +67,9 @@ source "../plugins/git.sh"
DOTFILE="" # --dotfile / -F DOTFILE="" # --dotfile / -F
TARGET="" # --target / -t TARGET="" # --target / -t
HELP="" # --help / -h
FORCE="" # --force / -f FORCE="" # --force / -f
DRY_RUN="" # --dry-run / -d
HELP="" # --help / -h
VERSION="" # --version / -v VERSION="" # --version / -v
if has-argument dotfile F "$@"; then if has-argument dotfile F "$@"; then
@@ -79,14 +80,18 @@ if has-argument target t "$@"; then
TARGET="$(parse-argument target t "$@")" TARGET="$(parse-argument target t "$@")"
fi fi
if has-argument help h "$@"; then if has-argument dry-run d "$@"; then
HELP="1" DRY_RUN="1"
fi fi
if has-argument force f "$@"; then if has-argument force f "$@"; then
FORCE="1" FORCE="1"
fi fi
if has-argument help h "$@"; then
HELP="1"
fi
if has-argument version v "$@"; then if has-argument version v "$@"; then
VERSION="1" VERSION="1"
fi fi