mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 01:56:39 +00:00
Add --dry-run argument
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user