]> arthur.barton.de Git - ax-zsh.git/commitdiff
axzshctl: Add "help" and "version" to help text and completion config
authorAlexander Barton <alex@barton.de>
Sat, 9 Dec 2023 12:30:18 +0000 (13:30 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 9 Dec 2023 12:30:18 +0000 (13:30 +0100)
bin/axzshctl
core/40_axzsh/functions/_axzsh

index 828ee9ba3af17e6e0cc3f66d2a88f0a6a99597b5..d64c3076eebde9ccd9fdf172aa490dd31e4a296e 100755 (executable)
@@ -74,6 +74,11 @@ function Usage {
        echo "  update-caches"
        echo "    Force rebuild of all cache files."
        echo
+       echo "  help"
+       echo "    Show this help text."
+       echo "  version"
+       echo "    Show version and setup information."
+       echo
        exit 0
 }
 
index 960a76b9d59333c88def4467608316f18a5b79a1..ed3eab7fe5fe23c180f80a41f34360fd232b8d64 100644 (file)
@@ -14,6 +14,8 @@ _axzshctl() {
                        set-theme\:"Set active theme."
                        upgrade\:"Upgrade AX-ZSH installation (requires Git)."
                        update-caches\:"Force rebuild of all cache files."
+                       version\:"Show version and setup information."
+                       help\:"Show help for the axzshctl command."
                ))' \
                '*: :->args'
 #