complete.rst: clarify in synopsis that -c/-p take an argument

Correct the grammar by moving the options after the command argument.
Also group the -c/--command and -p/--path pairs, to convey that the
short and long variants are equivalent.

While at it, consolidate the -C/--do-complete forms, like we usually
do.
This commit is contained in:
Johannes Altmanninger 2022-01-09 09:11:06 +01:00
parent 115615b831
commit 851512a7cc

View file

@ -6,8 +6,8 @@ complete - edit command specific tab-completions
Synopsis
--------
``complete`` **-c** | **--command** | **-p** | **--path** [*options*] *COMMAND*
``complete`` **-C** *STRING* | **--do-complete** *STRING*
``complete`` ((**-c** | **--command**) | (**-p** | **--path**)) *COMMAND* [*options*]
``complete`` ((**-C** | **--do-complete**)) *STRING*
Description
-----------