aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-24 22:33:12 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-24 22:33:12 +0000
commit4876585393500bcf93bc5d4f5d802172feabc46b (patch)
tree574c18172b2a68793fe07c4e8ac519d3c5d5ea48 /kiss
parentecb155b629ace572cbda08f3293353ef67626345 (diff)
downloadcpt-4876585393500bcf93bc5d4f5d802172feabc46b.tar.gz
docs: update
FossilOrigin-Name: 68a1146d0b229883de3b6e03df723ba8a57fb28dcd83fc235c058d93893b7e5b
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
}