mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 21:21:15 -03:00
Fixed typo
Missed a spot in the first attempt #12135 as pointed out by [xtqqczze](https://github.com/fish-shell/fish-shell/pull/12135#issuecomment-3609441130) Small typo found in doc_src/cmds/fish_opt.rst and tests/checks/argparse.fish. `valu` to `value`
This commit is contained in:
@@ -72,7 +72,7 @@ Same as above but the value of the second flag cannot be the empty string:
|
||||
::
|
||||
|
||||
set -l options (fish_opt -s h -l help)
|
||||
set options $options (fish_opt -s m -l max -rv test \$_flag_valu != "''")
|
||||
set options $options (fish_opt -s m -l max -rv test \$_flag_value != "''")
|
||||
argparse $options -- $argv
|
||||
|
||||
Same as above but with a third flag that can be given multiple times saving the value of each instance seen and only a long flag name (``--token``) is defined:
|
||||
@@ -82,7 +82,7 @@ Same as above but with a third flag that can be given multiple times saving the
|
||||
::
|
||||
|
||||
set -l options (fish_opt --short=h --long=help)
|
||||
set options $options (fish_opt --short=m --long=max --required-val --validate test \$_flag_valu != "''")
|
||||
set options $options (fish_opt --short=m --long=max --required-val --validate test \$_flag_value != "''")
|
||||
set options $options (fish_opt --long=token --multiple-vals)
|
||||
argparse $options -- $argv
|
||||
|
||||
|
||||
Reference in New Issue
Block a user