aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss10
1 files changed, 7 insertions, 3 deletions
diff --git a/kiss b/kiss
index 774b287..342fac0 100755
--- a/kiss
+++ b/kiss
@@ -995,9 +995,8 @@ args() {
log "kiss 0.5.9"
;;
- # Catch all invalid arguments as well as
- # any help related flags (-h, --help, help).
- *)
+ # Print usage and exit.
+ h|he|hel|help|-h|--help)
log "kiss [b|c|d|i|l|r|s|u] [pkg] [pkg] [pkg]" \
"build: Build a package." \
"checksum: Generate checksums." \
@@ -1010,6 +1009,11 @@ args() {
"search: Search for a package." \
"update: Check for updates."
;;
+
+ # Print message about invalid commands.
+ *)
+ die "'kiss $1' is not a valid command."
+ ;;
esac
}