Deprecate command parameters not starting with dash here too
This commit is contained in:
@@ -91,38 +91,38 @@ opt_count() {
|
|||||||
# Handle and parse option args
|
# Handle and parse option args
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
gz|--gz)
|
--gz)
|
||||||
GZIP_EXPORT="1"
|
GZIP_EXPORT="1"
|
||||||
TARGET="${2}"
|
TARGET="${2}"
|
||||||
opt_count
|
opt_count
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
tgz|--tgz)
|
--tgz)
|
||||||
TGZ_EXPORT="1"
|
TGZ_EXPORT="1"
|
||||||
TARGET="${2}"
|
TARGET="${2}"
|
||||||
opt_count
|
opt_count
|
||||||
zfs_enable_check
|
zfs_enable_check
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
txz|--txz)
|
--txz)
|
||||||
TXZ_EXPORT="1"
|
TXZ_EXPORT="1"
|
||||||
TARGET="${2}"
|
TARGET="${2}"
|
||||||
opt_count
|
opt_count
|
||||||
zfs_enable_check
|
zfs_enable_check
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-s|safe|--safe)
|
-s|--safe)
|
||||||
SAFE_EXPORT="1"
|
SAFE_EXPORT="1"
|
||||||
TARGET="${2}"
|
TARGET="${2}"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-r|raw|--raw)
|
-r|--raw)
|
||||||
RAW_EXPORT="1"
|
RAW_EXPORT="1"
|
||||||
TARGET="${2}"
|
TARGET="${2}"
|
||||||
opt_count
|
opt_count
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-v|verbose|--verbose)
|
-v|--verbose)
|
||||||
OPT_ZSEND="-Rv"
|
OPT_ZSEND="-Rv"
|
||||||
TARGET="${2}"
|
TARGET="${2}"
|
||||||
shift
|
shift
|
||||||
|
|||||||
@@ -63,12 +63,12 @@ OPT_ZRECV="-u"
|
|||||||
# Handle and parse option args
|
# Handle and parse option args
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
-f|force|--force)
|
-f|--force)
|
||||||
OPT_FORCE="1"
|
OPT_FORCE="1"
|
||||||
TARGET="${2}"
|
TARGET="${2}"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-v|verbose|--verbose)
|
-v|--verbose)
|
||||||
OPT_ZRECV="-u -v"
|
OPT_ZRECV="-u -v"
|
||||||
TARGET="${2}"
|
TARGET="${2}"
|
||||||
shift
|
shift
|
||||||
|
|||||||
Reference in New Issue
Block a user