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
|
||||
TARGET="" # --target / -t
|
||||
HELP="" # --help / -h
|
||||
FORCE="" # --force / -f
|
||||
DRY_RUN="" # --dry-run / -d
|
||||
HELP="" # --help / -h
|
||||
VERSION="" # --version / -v
|
||||
|
||||
if has-argument dotfile F "$@"; then
|
||||
@@ -79,14 +80,18 @@ if has-argument target t "$@"; then
|
||||
TARGET="$(parse-argument target t "$@")"
|
||||
fi
|
||||
|
||||
if has-argument help h "$@"; then
|
||||
HELP="1"
|
||||
if has-argument dry-run d "$@"; then
|
||||
DRY_RUN="1"
|
||||
fi
|
||||
|
||||
if has-argument force f "$@"; then
|
||||
FORCE="1"
|
||||
fi
|
||||
|
||||
if has-argument help h "$@"; then
|
||||
HELP="1"
|
||||
fi
|
||||
|
||||
if has-argument version v "$@"; then
|
||||
VERSION="1"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user