1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-13 02:56:18 +02:00

49907: Mention _numbers in completion guide

This commit is contained in:
Matthew Martin 2022-03-31 17:35:32 -05:00
parent 41eb200d66
commit 283fc8596b
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2022-03-31 Matthew Martin <phy1729@gmail.com>
* 49907: Etc/completion-style-guide: Mention _numbers in
completion guide.
2022-03-31 Peter Stephenson <p.stephenson@samsung.com> 2022-03-31 Peter Stephenson <p.stephenson@samsung.com>
* 27639: Doc/Zsh/expn.yo: clarify that ${(#)...} deals with * 27639: Doc/Zsh/expn.yo: clarify that ${(#)...} deals with

View File

@ -75,6 +75,8 @@ but use:
To indicate a default value, use square brackets: To indicate a default value, use square brackets:
'--timeout[specify connection timeout]:timeout (ms) [5000]' '--timeout[specify connection timeout]:timeout (ms) [5000]'
These two conventions can be used together or individually as appropriate. These two conventions can be used together or individually as appropriate.
Alternatively the `_numbers' function may be used:
'--timeout[specify connection timeout]: :_numbers -u ms -d 5000 timeout'
Group descriptions should be singular because only one thing is being Group descriptions should be singular because only one thing is being
completed even though many may be listed. This applies even where you completed even though many may be listed. This applies even where you