aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-cargo-urlgen
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/kiss-cargo-urlgen')
-rwxr-xr-xcontrib/kiss-cargo-urlgen5
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/kiss-cargo-urlgen b/contrib/kiss-cargo-urlgen
index 4229062..52a10eb 100755
--- a/contrib/kiss-cargo-urlgen
+++ b/contrib/kiss-cargo-urlgen
@@ -1,9 +1,6 @@
#!/bin/sh
# Create static cargo sources for Rust packages
-[ "$1" ] || {
- printf '\033[1;33m-> \033[musage: kiss-cargo-urlgen [crate+ver] [crate+ver]\n'
- exit 1
-}
+case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [crate+ver] [crate+ver]"; exit 0 ; esac
# We convert the name-version seperator from '+' to '-' to
# avoid issues that may arise from version numbers that include