From 35de7250a5d361dff1a8d94403fe106d0ea34e4c Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 10 Mar 2018 19:28:52 +0800 Subject: Update help and version commands --- dfly-update | 14 +++++--------- 1 file 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 -- cgit v1.2.2