Set argument parameter to options that take an argument
This commit is contained in:
parent
a9c9c72fae
commit
e7068f9923
16
src/_yfm
16
src/_yfm
|
@ -74,20 +74,20 @@ _yfm() {
|
||||||
publish)
|
publish)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(--endpoint)'--endpoint'[Endpoint of S3 storage]:url:_urls' \
|
'(--endpoint)'--endpoint'[Endpoint of S3 storage]:url:_urls' \
|
||||||
'(--bucket)'--bucket'[Bucket name of S3 storage]' \
|
'(--bucket)'--bucket'[Bucket name of S3 storage]:bucket' \
|
||||||
'(--prefix)'--prefix'[Bucket internal scope of S3 storage]' \
|
'(--prefix)'--prefix'[Bucket internal scope of S3 storage]:bucket_internal_scope' \
|
||||||
'(--access-key-id)'--access-key-id'[Key Id of S3 storage]' \
|
'(--access-key-id)'--access-key-id'[Key Id of S3 storage]:key_id' \
|
||||||
'(--secret-access-key)'--secret-access-key'[Secret key of S3 storage]' \
|
'(--secret-access-key)'--secret-access-key'[Secret key of S3 storage]:secret_key' \
|
||||||
'(--region)'--region'[Region of S3 storage]' \
|
'(--region)'--region'[Region of S3 storage]:region' \
|
||||||
'(--hidden)'--hidden'[Do not upload paths matched by glob]' \
|
'(--hidden)'--hidden'[Do not upload paths matched by glob]:pattern' \
|
||||||
'1: :_files' \
|
'1: :_files' \
|
||||||
'*:: :->command_args'
|
'*:: :->command_args'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
translate)
|
translate)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(--source)'--source'[Language code of the original document in ISO 639-1 format]:TEXT' \
|
'(--source)'--source'[Language code of the original document in ISO 639-1 format]:language' \
|
||||||
'(--target)'--target'[Language code of the translated document in ISO 639-1 format]:TEXT' \
|
'(--target)'--target'[Language code of the translated document in ISO 639-1 format]:language' \
|
||||||
'(--input)'--input'[Source path to the documentation]:dir:_yfm_suggest_dir' \
|
'(--input)'--input'[Source path to the documentation]:dir:_yfm_suggest_dir' \
|
||||||
'(--target)'--target'[Target path to the translated documentation]:dir:_yfm_suggest_dir' \
|
'(--target)'--target'[Target path to the translated documentation]:dir:_yfm_suggest_dir' \
|
||||||
'(--include)'--include'[A set of rules for filtering sent translation files]:filename:_files' \
|
'(--include)'--include'[A set of rules for filtering sent translation files]:filename:_files' \
|
||||||
|
|
Loading…
Reference in New Issue