diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-25 15:29:58 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-25 15:29:58 -0300 |
commit | c979e86b9bd881cefed0a637d81f042ed95372d5 (patch) | |
tree | e9b478038777a003a71052a2ae7870724802bd59 /src/usr/local | |
parent | 7025e3d4e3506e34983d643f3e110cf36798adb7 (diff) | |
download | pfsense-c979e86b9bd881cefed0a637d81f042ed95372d5.zip pfsense-c979e86b9bd881cefed0a637d81f042ed95372d5.tar.gz |
Add -h, to show help
Diffstat (limited to 'src/usr/local')
-rwxr-xr-x | src/usr/local/sbin/pfSense-upgrade | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade index 3225d12..64b84e7 100755 --- a/src/usr/local/sbin/pfSense-upgrade +++ b/src/usr/local/sbin/pfSense-upgrade @@ -49,6 +49,7 @@ usage() { echo "Usage: $(basename ${0}) [-dy] [-u|-i PKG_NAME|-r PKG_NAME]" >&2 echo " -d - Turn on debug" >&2 + echo " -h - Show this usage help" >&2 echo " -p FIFO - Write pkg progress to FIFO" echo " -y - Consider yes as the answer for any possible interaction" >&2 echo "" >&2 @@ -363,7 +364,7 @@ unset yes unset progress_fifo unset action unset action_pkg -while getopts di:p:r:uy opt; do +while getopts di:hp:r:uy opt; do case ${opt} in d) stdout='' @@ -376,6 +377,9 @@ while getopts di:p:r:uy opt; do action="install" action_pkg="${OPTARG}" ;; + h) + usage + _exit 0 p) progress_fifo="${OPTARG}" ;; |