mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 01:56:39 +00:00
Get rid of --force argument, don't need it yet (if ever)
This commit is contained in:
11
bin/dotify
11
bin/dotify
@@ -356,15 +356,14 @@ DOTIFY_OPT_DEFAULT_ACTION="link"
|
|||||||
# Argument Parsing
|
# Argument Parsing
|
||||||
#
|
#
|
||||||
|
|
||||||
DOTFILE="" # --dotfile / -F
|
DOTFILE="" # --dotfile / -f
|
||||||
TARGET="" # --target / -t
|
TARGET="" # --target / -t
|
||||||
FORCE="" # --force / -f
|
|
||||||
DRY_RUN="" # --dry-run / -d
|
DRY_RUN="" # --dry-run / -d
|
||||||
HELP="" # --help / -h
|
HELP="" # --help / -h
|
||||||
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
|
||||||
@@ -375,10 +374,6 @@ if has-argument dry-run d "$@"; then
|
|||||||
DRY_RUN="1"
|
DRY_RUN="1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if has-argument force f "$@"; then
|
|
||||||
FORCE="1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if has-argument help h "$@"; then
|
if has-argument help h "$@"; then
|
||||||
HELP="1"
|
HELP="1"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -83,15 +83,14 @@ DOTIFY_OPT_DEFAULT_ACTION="link"
|
|||||||
# Argument Parsing
|
# Argument Parsing
|
||||||
#
|
#
|
||||||
|
|
||||||
DOTFILE="" # --dotfile / -F
|
DOTFILE="" # --dotfile / -f
|
||||||
TARGET="" # --target / -t
|
TARGET="" # --target / -t
|
||||||
FORCE="" # --force / -f
|
|
||||||
DRY_RUN="" # --dry-run / -d
|
DRY_RUN="" # --dry-run / -d
|
||||||
HELP="" # --help / -h
|
HELP="" # --help / -h
|
||||||
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
|
||||||
@@ -102,10 +101,6 @@ if has-argument dry-run d "$@"; then
|
|||||||
DRY_RUN="1"
|
DRY_RUN="1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if has-argument force f "$@"; then
|
|
||||||
FORCE="1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if has-argument help h "$@"; then
|
if has-argument help h "$@"; then
|
||||||
HELP="1"
|
HELP="1"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user