From 0865856a9c5526d33a5eec55d4bb5ff26992e068 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 25 Jul 2019 01:33:12 +0300 Subject: [PATCH] docs: update --- kiss | 10 +++++++--- 1 file 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 }