mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 06:05:59 +02:00
Remove rules for ranges and options (#9793)
* Remove rules for ranges and options * Return "Option syntax"
This commit is contained in:
parent
db0459e834
commit
6b405eb7e0
1 changed files with 0 additions and 11 deletions
|
@ -128,17 +128,6 @@ Keep the following guidelines in mind when choosing placeholders:
|
||||||
which don't allow adding arbitrary text in them (ranges), then instead of generic placeholders use descriptive ones. For example prefer `input swipe {{x_position}} {{y_position}} {{x_position}} {{y_position}} {{seconds}}`
|
which don't allow adding arbitrary text in them (ranges), then instead of generic placeholders use descriptive ones. For example prefer `input swipe {{x_position}} {{y_position}} {{x_position}} {{y_position}} {{seconds}}`
|
||||||
instead of `input swipe {{-infinity..infinity}} {{-infinity..infinity}} {{-infinity..infinity}} {{-infinity..infinity}} {{1..infinity}}`.
|
instead of `input swipe {{-infinity..infinity}} {{-infinity..infinity}} {{-infinity..infinity}} {{-infinity..infinity}} {{1..infinity}}`.
|
||||||
|
|
||||||
### Range syntax
|
|
||||||
|
|
||||||
All borders of integer and float ranges get included. If you want to exclude the border, then use incremented or decremented values to do it:
|
|
||||||
`{{1..5}}` == `[1-6)`.
|
|
||||||
|
|
||||||
- Use `{{from..to}}` syntax for closed ranges.
|
|
||||||
- Use `{{-n..to}}` or `{{from..n}}` syntax for integer partially closed ranges where `n` is a keyword
|
|
||||||
signifying the minimum or maximum range value e.g. `{{1..n}}` - 1 or greater values.
|
|
||||||
- Use `{{integer}}` syntax for values where any integer is valid.
|
|
||||||
- Use `{{float}}` syntax for values where any float is valid.
|
|
||||||
|
|
||||||
### Paths
|
### Paths
|
||||||
|
|
||||||
- Use `{{filename}}` when just file name is expected.
|
- Use `{{filename}}` when just file name is expected.
|
||||||
|
|
Loading…
Add table
Reference in a new issue