diff --git a/shmoji b/shmoji index 260862d..47154f5 100755 --- a/shmoji +++ b/shmoji @@ -18,9 +18,6 @@ die() { } case "$cmd" in - -h|--help|help|"") - printf "%s\n" "usage: shmoji [bemenu | download]" - ;; download) command -v curl > /dev/null || die 'curl not found' mkdir -p "$emojidb" @@ -34,6 +31,9 @@ case "$cmd" in emoji=$(cat "$emojidb/emojis.txt" | bemenu -c -W 0.2 -l 20) printf "%s" "$emoji" | cut -d " " -f 1 | wtype - ;; + *) + printf "%s\n" "usage: shmoji [bemenu | download]" + ;; esac exit 0