diff options
| author | Anton Bobov <anton@bobov.name> | 2022-01-30 21:03:14 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2022-01-30 21:03:14 +0500 |
| commit | b25a5b794be7093dbcd556fcab2ebc50bb33e8b2 (patch) | |
| tree | 282659aa4c647c87e004273efd4d02599afbcec2 /emojis | |
| parent | c83690911af9326784d81e49e2b55de9688c1e9b (diff) | |
Updates.
Diffstat (limited to 'emojis')
| -rwxr-xr-x | emojis | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -8,16 +8,33 @@ list() { fzf --no-sort --reverse | awk '{print $1}' | xsel } +print_help() { + cat <<EOF +Usage: $(basename "$0") [-h|--help] [-g|--git] + +-h, --help prints this message +-g, --git list gitmojis +EOF +} + name=EMOJI while [[ $# -gt 0 ]] ; do case "$1" in -g|--git) name=GITMOJI ;; + -h|--help) + HELP=1 + ;; esac shift done +if [ "$HELP" = 1 ] ; then + print_help + exit 0 +fi + list $name exit 0 |
