mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 11:55:34 +02:00
CLIENT-SPECIFICATION: remove -S
and -E
(#15795)
I think that these short versions of `--short-options` and `--long-options` are unintuitive and it might be better to only have the long variants. If users ask for short variants, we can still add them later to the specification. On the other hand, releasing them now means that it will be a breaking change to remove them again. Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
ffaaa5085a
commit
9d37495b39
1 changed files with 9 additions and 9 deletions
|
@ -37,14 +37,14 @@ For example, clients should implement _both_ `-v` and `--version`.
|
|||
When a client implements updating the offline cache, they should support _both_ `-u` and `--update`.
|
||||
|
||||
Option | Required? | Meaning
|
||||
-----------------------|-------------|----------
|
||||
-------------------|-------------|----------
|
||||
`-v`, `--version` | Yes | Shows the current version of the client, and the version of this specification that it implements.
|
||||
`-p`, `--platform` | Yes | Specifies the platform to be used to perform the action (either listing or searching) as an argument. If this option is specified, the selected platform MUST be checked first instead of the current platform as described below.
|
||||
`-u`, `--update` | Conditional | Updates the offline cache of pages. MUST be implemented if caching is supported.
|
||||
`-l`, `--list` | No | Lists all the pages in the current platform to the standard output.
|
||||
`-L`, `--language` | No | Specifies the preferred language for the page returned. Overrides other language detection mechanisms. See the [language section](#language) for more information.
|
||||
`-S`, `--short-options`| No | If set, will filter examples to show their shortform option when available
|
||||
`-E`, `--long-options` | No | If set, will filter examples to show their longform option when available
|
||||
`--short-options` | No | If set, will filter examples to show their shortform option when available
|
||||
`--long-options` | No | If set, will filter examples to show their longform option when available
|
||||
|
||||
By default clients SHOULD display only the longform option when neither `--short-options` or `--long-options` is set by the user. If both are provided, both options should be displayed (see the [Page Structure / Examples](#examples) section for the output format).
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue