mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 02:13:38 +08:00
docs synopses: use ellipsis with singular words
We use plural "*OPTIONS*" more often than "*OPTION*...", so let's do that everywhere. In some other places where we do have an ellipsis, make sure to use singular, since the ellipsis already means repetition. This change is incomplete, and I'm not sure if this is worth it, since it's subjective, so I might drop it.
This commit is contained in:
parent
f8e8c23ac3
commit
be451091d4
|
@ -6,7 +6,7 @@ block - temporarily block delivery of events
|
|||
Synopsis
|
||||
--------
|
||||
|
||||
**block** [*OPTIONS* ...]
|
||||
**block** [*OPTIONS*]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -6,8 +6,8 @@ builtin - run a builtin command
|
|||
Synopsis
|
||||
--------
|
||||
|
||||
| **builtin** [*OPTIONS* ...] *BUILTINNAME*
|
||||
| **builtin** --query *BUILTINNAMES* ...
|
||||
| **builtin** [*OPTIONS*] *BUILTINNAME*
|
||||
| **builtin** --query *BUILTINNAME* ...
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -7,8 +7,8 @@ fish - the friendly interactive shell
|
|||
Synopsis
|
||||
--------
|
||||
|
||||
| ``fish`` [*OPTIONS*] [*FILE* [ARGS ...]]
|
||||
| ``fish`` [*OPTIONS*] [**-c** *COMMAND* [ARGS ...]]
|
||||
| ``fish`` [*OPTIONS*] [*FILE* [ARG ...]]
|
||||
| ``fish`` [*OPTIONS*] [**-c** *COMMAND* [ARG ...]]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -10,7 +10,7 @@ Synopsis
|
|||
| **functions** [ **-D** | **--details** ] [ **-v** ] *FUNCTION*
|
||||
| **functions** **-c** *OLDNAME* *NEWNAME*
|
||||
| **functions** **-d** *DESCRIPTION* *FUNCTION*
|
||||
| **functions** [ **-e** | **-q** ] *FUNCTIONS...*
|
||||
| **functions** [ **-e** | **-q** ] *FUNCTION...*
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -6,7 +6,7 @@ while - perform a set of commands multiple times
|
|||
Synopsis
|
||||
--------
|
||||
|
||||
**while** *CONDITION*; *COMMANDS...*; **end**
|
||||
**while** *CONDITION*; *COMMANDS*; **end**
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
|
|
@ -1207,7 +1207,7 @@ A more robust approach to argument handling is :ref:`argparse <cmd-argparse>`, w
|
|||
|
||||
# If -h or --help is given, we print a little help text and return
|
||||
if set -q _flag_help
|
||||
echo "mybetterfunction [-h|--help] [-s|--second] [ARGUMENTS...]"
|
||||
echo "mybetterfunction [-h|--help] [-s|--second] [ARGUMENT...]"
|
||||
return 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user