You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement option length selection with options and environment variables (#259)
* Initial work on option lenght selection
* Document functionality with a comment
* Stricter regex
* Allow for multi-option placeholders like in rsync.md
* Set display with options
* Fix issues
* Fix tests
* Fix comma
* Add env variable support
* shuffle order
* whitespace
* longform by default
* New syntax and default behavior
* Leave the brackets if both are requested
* -o and -O for options
* Update README.md
* merge
* Apply official option naming
* Update README.md
* env variables
* Make it work
* fix default state
* Fix --short-options
* Update README.md
Co-authored-by: Lena <[email protected]>
* Use strings instead of bools
---------
Co-authored-by: Lena <[email protected]>
@@ -180,3 +181,7 @@ can either use the `--source` flag when using tldr or by specifying the followin
180
181
- it can also point to a local directory using `file:///path/to/directory`.
181
182
-`TLDR_DOWNLOAD_CACHE_LOCATION` to control where to pull a zip of all pages from.
182
183
- defaults to `https://github.com/tldr-pages/tldr/releases/latest/download/tldr.zip`.
184
+
185
+
### Command options
186
+
187
+
Pages might contain `{{[*|*]}}` patterns to let the client decide whether to show shortform or longform versions of options. This can be configured with `TLDR_OPTIONS`, which accepts values `short`, `long` and `both`
0 commit comments