mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
docs synopsis: make all placeholder arguments uppercase
man(1) uses lowercase placeholders but we usually don't. Additionally, the new synopsis autoformatting only recognizes placeholders if they are uppercase. Use uppercase for all placeholders.
This commit is contained in:
parent
c0d1e41313
commit
2a98b7a593
19 changed files with 28 additions and 28 deletions
|
@ -8,7 +8,7 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
loop_construct
|
||||
LOOP_CONSTRUCT
|
||||
[COMMANDS ...]
|
||||
break
|
||||
[COMMANDS ...]
|
||||
|
|
|
@ -8,7 +8,7 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
complete ((-c | --command) | (-p | --path)) COMMAND [options]
|
||||
complete ((-c | --command) | (-p | --path)) COMMAND [OPTIONS]
|
||||
complete ((-C | --do-complete)) STRING
|
||||
|
||||
Description
|
||||
|
|
|
@ -8,7 +8,7 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
contains [options] KEY [VALUES ...]
|
||||
contains [OPTIONS] KEY [VALUES ...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -8,8 +8,8 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
count string1 string2 ...
|
||||
command | count
|
||||
count STRING1 STRING2 ...
|
||||
COMMAND | count
|
||||
count [...] < FILE
|
||||
|
||||
Description
|
||||
|
|
|
@ -8,7 +8,7 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
echo [options] [STRING]
|
||||
echo [OPTIONS] [STRING]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -9,12 +9,12 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
exit [code]
|
||||
exit [CODE]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
**exit** is a special builtin that causes the shell to exit. Either 255 or the *code* supplied is used, whichever is lesser.
|
||||
**exit** is a special builtin that causes the shell to exit. Either 255 or the *CODE* supplied is used, whichever is lesser.
|
||||
Otherwise, the exit status will be that of the last command executed.
|
||||
|
||||
If exit is called while sourcing a file (using the :ref:`source <cmd-source>` builtin) the rest of the file will be skipped, but the shell itself will not exit.
|
||||
|
|
|
@ -10,7 +10,7 @@ Synopsis
|
|||
.. synopsis::
|
||||
|
||||
fish_add_path path ...
|
||||
fish_add_path [(-g | --global) | (-U | --universal) | (-P | --path)] [(-m | --move)] [(-a | --append) | (-p | --prepend)] [(-v | --verbose) | (-n | --dry-run)] paths ...
|
||||
fish_add_path [(-g | --global) | (-U | --universal) | (-P | --path)] [(-m | --move)] [(-a | --append) | (-p | --prepend)] [(-v | --verbose) | (-n | --dry-run)] PATHS ...
|
||||
|
||||
|
||||
Description
|
||||
|
|
|
@ -9,7 +9,7 @@ Synopsis
|
|||
.. synopsis::
|
||||
|
||||
fish_opt [--help]
|
||||
fish_opt [(-slor | --multiple-vals=) optname]
|
||||
fish_opt [(-slor | --multiple-vals=) OPTNAME]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -9,7 +9,7 @@ Synopsis
|
|||
.. synopsis::
|
||||
|
||||
history [search] [--show-time] [--case-sensitive]
|
||||
[--exact | --prefix | --contains] [--max n] [--null] [--reverse]
|
||||
[--exact | --prefix | --contains] [--max N] [--null] [--reverse]
|
||||
[SEARCH_STRING ...]
|
||||
history delete [--case-sensitive]
|
||||
[--exact | --prefix | --contains] SEARCH_STRING ...
|
||||
|
|
|
@ -8,7 +8,7 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
not COMMAND [options ...]
|
||||
not COMMAND [OPTIONS ...]
|
||||
|
||||
|
||||
Description
|
||||
|
|
|
@ -8,7 +8,7 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
read [options] [VARIABLE ...]
|
||||
read [OPTIONS] [VARIABLE ...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -9,7 +9,7 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
realpath [options] PATH
|
||||
realpath [OPTIONS] PATH
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -9,13 +9,13 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
return [n]
|
||||
return [N]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
:program:`return` halts a currently running function.
|
||||
The exit status is set to ``n`` if it is given.
|
||||
The exit status is set to ``N`` if it is given.
|
||||
If :program:`return` is invoked outside of a function or dot script it is equivalent to exit.
|
||||
|
||||
It is often added inside of a conditional block such as an :ref:`if <cmd-if>` statement or a :ref:`switch <cmd-switch>` statement to conditionally stop the executing function and return to the caller; it can also be used to specify the exit status of a function.
|
||||
|
|
|
@ -8,12 +8,12 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
set [scope options]
|
||||
set [options] VARIABLE VALUES ...
|
||||
set [options] VARIABLE[INDICES] VALUES ...
|
||||
set (-q | --query) [scope options] VARIABLE ...
|
||||
set (-e | --erase) [scope options] VARIABLE ...
|
||||
set (-e | --erase) [scope options] VARIABLE[INDICES] ...
|
||||
set [SCOPE_OPTIONS]
|
||||
set [OPTIONS] VARIABLE VALUES ...
|
||||
set [OPTIONS] VARIABLE[INDICES] VALUES ...
|
||||
set (-q | --query) [SCOPE_OPTIONS] VARIABLE ...
|
||||
set (-e | --erase) [SCOPE_OPTIONS] VARIABLE ...
|
||||
set (-e | --erase) [SCOPE_OPTIONS] VARIABLE[INDICES] ...
|
||||
set (-S | --show) VARIABLE ...
|
||||
|
||||
Description
|
||||
|
|
|
@ -8,8 +8,8 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
source FILE [arguments ...]
|
||||
somecommand | source
|
||||
source FILE [ARGUMENTS ...]
|
||||
SOMECOMMAND | source
|
||||
|
||||
|
||||
Description
|
||||
|
|
|
@ -8,7 +8,7 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
trap [options] [[ARG] REASON ... ]
|
||||
trap [OPTIONS] [[ARG] REASON ... ]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -8,7 +8,7 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
type [options] NAME [...]
|
||||
type [OPTIONS] NAME [...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -8,7 +8,7 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
ulimit [options] [limit]
|
||||
ulimit [OPTIONS] [LIMIT]
|
||||
|
||||
|
||||
Description
|
||||
|
|
|
@ -8,7 +8,7 @@ Synopsis
|
|||
|
||||
.. synopsis::
|
||||
|
||||
umask [options] [MASK]
|
||||
umask [OPTIONS] [MASK]
|
||||
|
||||
|
||||
Description
|
||||
|
|
Loading…
Reference in a new issue