Adjustment for consistency

This commit is contained in:
Daniel Ziltener
2021-02-19 17:11:19 +01:00
parent 214a3e9894
commit 2aa92042fd

View File

@@ -32,24 +32,28 @@
. /usr/local/etc/bastille/bastille.conf
usage() {
error_exit "Usage: bastille cp TARGET HOST_PATH CONTAINER_PATH [CP_OPTIONS]"
error_exit "Usage: bastille cp [OPTION] TARGET HOST_PATH CONTAINER_PATH"
}
CPSOURCE="${1}"
CPDEST="${2}"
# Handle special-case commands first.
case "$1" in
help|-h|--help)
usage
;;
-q|--quiet)
OPTION="${1}"
CPSOURCE="${2}"
CPDEST="${3}"
;;
esac
if [ $# -ne 2 ]; then
usage
fi
CPSOURCE="${1}"
CPDEST="${2}"
OPTION="${3}"
case "${OPTION}" in
-q|--quiet)
OPTION="-a"