Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: removing '--version' option #24

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/zsh-simple-abbreviations
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env zsh

VERSION='0.3.0'
KEY_REGEX="^[[:alnum:]]+$"

__zsh_simple_abbreviations::expand() {
Expand Down Expand Up @@ -58,7 +57,6 @@ case $1 in
fi
;;


--list)
if [[ $# -ne 1 ]]; then
echo "zsh_simple_abbreviations list sub-command takes no other arguments."
Expand All @@ -70,16 +68,6 @@ case $1 in
done
;;


--version)
if [[ $# -ne 1 ]]; then
echo "zsh_simple_abbreviations version sub-command takes no other arguments."
return 1
fi

echo "${VERSION}"
;;

*)
echo "zsh_simple_abbreviations unrecognised sub-command."
return 1
Expand Down
Loading