aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-10 19:28:52 +0800
committerAaron LI <aly@aaronly.me>2018-03-10 19:28:52 +0800
commit35de7250a5d361dff1a8d94403fe106d0ea34e4c (patch)
tree802f15d11d257171da35edbea366b5317dcea872
parentcb245e73dc1e8897daa0280f17118a66c2fa2680 (diff)
downloaddfly-update-35de7250a5d361dff1a8d94403fe106d0ea34e4c.tar.bz2
Update help and version commands
-rwxr-xr-xdfly-update14
1 files changed, 5 insertions, 9 deletions
diff --git a/dfly-update b/dfly-update
index aeea5d4..33f2cbf 100755
--- a/dfly-update
+++ b/dfly-update
@@ -148,9 +148,9 @@ cmd_usage() {
dfly-update - DragonFly BSD update tool using binary release/snapshots
Usage:
- help
+ help | --help | -h
Show this help.
- version
+ version | --version | -v
Show version information of this tool.
status
Show local installed system version and remote available version.
@@ -211,11 +211,7 @@ cmd_extension_or_status() {
COMMAND="$1"
case "${COMMAND}" in
- help|--help|-h)
- shift
- cmd_usage
- ;;
- version|--version|-V)
+ version|--version|-v)
shift
cmd_version
;;
@@ -223,8 +219,8 @@ case "${COMMAND}" in
shift
cmd_status "$@"
;;
- *)
- cmd_extension_or_status "$@"
+ help|--help|-h|*)
+ cmd_usage
;;
esac