mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-21 08:55:42 +02:00
client spec: Tidy up optional platform specifier.
This commit is contained in:
parent
a7d03607e5
commit
4628be7b6d
1 changed files with 10 additions and 8 deletions
|
@ -78,7 +78,7 @@ tldr git checkout
|
||||||
tldr --foo bar bash
|
tldr --foo bar bash
|
||||||
```
|
```
|
||||||
|
|
||||||
Furthermore, clients may OPTIONALLY support a colon to specify the platform name in addition to the `--platform`, `-p` syntax described above Here are some examples:
|
Furthermore, clients may OPTIONALLY support a colon to specify the platform name Here are some examples:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
tldr platform:page
|
tldr platform:page
|
||||||
|
@ -87,21 +87,23 @@ tldr common:git checkout
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Specifying the Platform
|
#### Specifying the Platform
|
||||||
As pages are grouped by platform, a user may want to access a platform-specific version of a page. This MUST be supported by prefixing the page name as follows:
|
As pages are grouped by platform, a user may want to access a platform-specific version of a page. This MAY OPTIONALLY be supported by prefixing the page name as follows, in addition to the `--platform`, `-p` syntax described above:
|
||||||
|
|
||||||
```
|
```
|
||||||
windows/type
|
platform:page
|
||||||
linux/sh
|
windows:type
|
||||||
osx/brew
|
linux:sh
|
||||||
|
osx:brew
|
||||||
|
common:git checkout
|
||||||
```
|
```
|
||||||
|
|
||||||
Example invocations are as follows:
|
Example invocations are as follows:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
tldr windows/type
|
tldr windows:type
|
||||||
# --foo is a custom argument, as described above
|
# --foo is a custom argument, as described above
|
||||||
tldr --foo bar common/git merge
|
tldr --foo bar common:git merge
|
||||||
tldr linux/notify-send
|
tldr linux:notify-send
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue