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:
Johannes Altmanninger 2022-01-09 09:42:36 +01:00
parent f8e8c23ac3
commit be451091d4
6 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@ block - temporarily block delivery of events
Synopsis
--------
**block** [*OPTIONS* ...]
**block** [*OPTIONS*]
Description
-----------

View File

@ -6,8 +6,8 @@ builtin - run a builtin command
Synopsis
--------
| **builtin** [*OPTIONS* ...] *BUILTINNAME*
| **builtin** --query *BUILTINNAMES* ...
| **builtin** [*OPTIONS*] *BUILTINNAME*
| **builtin** --query *BUILTINNAME* ...
Description
-----------

View File

@ -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
-----------

View File

@ -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
-----------

View File

@ -6,7 +6,7 @@ while - perform a set of commands multiple times
Synopsis
--------
**while** *CONDITION*; *COMMANDS...*; **end**
**while** *CONDITION*; *COMMANDS*; **end**
Description
-----------

View File

@ -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