aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-new
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/kiss-new')
-rwxr-xr-xcontrib/kiss-new6
1 files changed, 1 insertions, 5 deletions
diff --git a/contrib/kiss-new b/contrib/kiss-new
index 491ce9c..6d41da9 100755
--- a/contrib/kiss-new
+++ b/contrib/kiss-new
@@ -4,11 +4,7 @@
out() { printf '\033[1;33m-> \033[m%s\n' "$@" >&2 ;}
die() { printf '\033[1;31m!> \033[m%s\n' "$@" >&2 ; exit 1 ;}
-[ "$1" ] || {
- out "usage: ${0##*/} <name> [version] [source]" \
- "Create boilerplate kiss packages"
- exit 0
-}
+case "$1" in ''|--help|-h) out "usage: ${0##*/} <name> [version] [source]"; exit 0; esac
[ -d "$1" ] && die "Package '$1' already exists."