Remove rules for ranges and options (#9793)

* Remove rules for ranges and options

* Return "Option syntax"
pull/3/head
Emily Grace Seville 2023-02-09 12:17:56 +10:00 committed by GitHub
parent db0459e834
commit 6b405eb7e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 11 deletions

View File

@ -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}}`
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
- Use `{{filename}}` when just file name is expected.