diff options
author | Michael Reed <m.reed@mykolab.com> | 2015-01-30 17:35:00 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-02-02 01:11:19 -0500 |
commit | 84ca5f973de7e9ce0fe60d7e3b39d6724dc8af8c (patch) | |
tree | 0b34be5391a79b32c23ec952249e2175302de6d1 | |
parent | ed03d43d8bf6ce7440dbe877c15bee1218411363 (diff) | |
download | rneovim-84ca5f973de7e9ce0fe60d7e3b39d6724dc8af8c.tar.gz rneovim-84ca5f973de7e9ce0fe60d7e3b39d6724dc8af8c.tar.bz2 rneovim-84ca5f973de7e9ce0fe60d7e3b39d6724dc8af8c.zip |
scripts/vim-patch: Allow equivalent shorthand args
-rwxr-xr-x | scripts/vim-patch.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 4c9a141bd2..c4bc2d156a 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -15,8 +15,8 @@ usage() { >&2 echo " ${0} vim-revision" >&2 echo >&2 echo "Options:" - >&2 echo " --help Show this message." - >&2 echo " --list Show list of Vim patches missing from Neovim." + >&2 echo " -h, --help Show this message." + >&2 echo " -l, --list Show list of Vim patches missing from Neovim." >&2 echo >&2 echo "vim-revision can be a version number in format '7.4.xxx'" >&2 echo "or a Mercurial commit hash." @@ -181,14 +181,14 @@ list_vim_patches() { echo " './scripts/vim-patch.sh 1e8ebf870720e7b671f98f22d653009826304c4f'" } -if [[ ${#} != 1 || "${1}" == "--help" ]]; then +if [[ ${#} != 1 || "${1}" == "--help" || "${1}" == "-h" ]]; then usage exit 1 fi get_vim_sources -if [[ "${1}" == "--list" ]]; then +if [[ "${1}" == "--list" || "${1}" == "-l" ]]; then list_vim_patches else get_vim_patch ${1} |