Merge pull request #857 from Freed-Wu/hello

Add completion for hello
This commit is contained in:
Shohei YOSHIDA 2022-04-01 16:40:21 +09:00 committed by GitHub
commit 6db5ddc655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

19
src/_hello Normal file
View File

@ -0,0 +1,19 @@
#compdef hello
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for GNU hello (https://www.gnu.org/software/hello/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Wu Zhenyu <wuzy01@qq.com>
#
# ------------------------------------------------------------------------------
_arguments -s '(- *)'{-h,--help}'[display this help and exit]' \
'(- *)'{-v,--version}'[display version information and exit]' \
{-t,--traditional}'[use traditional greeting]' \
{-g,--greeting=}'[use TEXT as the greeting message]:TEXT'