mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 13:53:52 +02:00
style-guide: modify grouping placeholders section (#11723)
This commit is contained in:
parent
cc4907814e
commit
f9606bbcc5
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ Keep the following guidelines in mind when choosing placeholders:
|
||||||
- If a command can take 0 or more arguments of the same kind, use an ellipsis: `{{placeholder1 placeholder2 ...}}`.
|
- If a command can take 0 or more arguments of the same kind, use an ellipsis: `{{placeholder1 placeholder2 ...}}`.
|
||||||
For instance, if multiple paths are expected `{{path/to/directory1 path/to/directory2 ...}}` can be used.
|
For instance, if multiple paths are expected `{{path/to/directory1 path/to/directory2 ...}}` can be used.
|
||||||
- If a command can take 0 or more arguments of different kinds, use an ellipsis: `{{placeholder1|placeholder2|...}}`.
|
- If a command can take 0 or more arguments of different kinds, use an ellipsis: `{{placeholder1|placeholder2|...}}`.
|
||||||
If there are more than 5 possible values use `|...` after the last item.
|
If there are more than 5 possible values, you can use `|...` after the last item.
|
||||||
- It's impossible to restrict the minimum or (and) maximum placeholder count via `ellipsis`.
|
- It's impossible to restrict the minimum or (and) maximum placeholder count via `ellipsis`.
|
||||||
|
|
||||||
It's up to the program to decide how to handle duplicating values, provided syntax
|
It's up to the program to decide how to handle duplicating values, provided syntax
|
||||||
|
|
Loading…
Add table
Reference in a new issue