]> arthur.barton.de Git - ax-zsh.git/commitdiff
axzshctl: Show help on stderr, add "help" alias
authorAlexander Barton <alex@barton.de>
Thu, 11 Jun 2020 21:50:17 +0000 (23:50 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 11 Jun 2020 21:50:17 +0000 (23:50 +0200)
bin/axzshctl

index 05062bd346c02c636bcc747de96a8c1ce654e028..f8716fd08f446006686993d540b9574a20c0dfe0 100755 (executable)
@@ -437,8 +437,8 @@ case "$cmd" in
                [[ $# -eq 0 ]] || Usage
                UpdatePluginCache -v
                ;;
                [[ $# -eq 0 ]] || Usage
                UpdatePluginCache -v
                ;;
-       "--help")
-               Usage
+       "--help"|"help")
+               Usage >&2
                ;;
        *)
                ax_error "Invalid command \"$cmd\"!"
                ;;
        *)
                ax_error "Invalid command \"$cmd\"!"