From 9e2d0f72f1a337da0c59c37c095221d9fa1d2c91 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 9 Mar 2025 00:16:26 +0000 Subject: [PATCH] Update cheatsheets --- tldr/animdl | 6 +++--- tldr/ansible-galaxy | 2 +- tldr/asciinema | 2 +- tldr/azurite | 6 +++--- tldr/base32 | 6 +++--- tldr/base64 | 6 +++--- tldr/bat | 10 +++++----- tldr/calibredb | 2 +- tldr/clang | 14 +++++++------- tldr/clang++ | 14 +++++++------- tldr/crane | 4 ++-- tldr/crane-append | 10 +++++----- tldr/crane-auth | 10 +++++----- tldr/crane-blob | 2 +- tldr/crane-catalog | 2 +- tldr/crane-config | 2 +- tldr/crane-copy | 8 ++++---- tldr/crane-delete | 2 +- tldr/crane-digest | 2 +- tldr/crane-flatten | 4 ++-- tldr/crane-index | 2 +- tldr/crane-index-append | 6 +++--- tldr/crane-index-filter | 4 ++-- tldr/crane-ls | 4 ++-- tldr/crane-manifest | 2 +- tldr/crane-mutate | 14 +++++++------- tldr/crane-pull | 4 ++-- tldr/crane-push | 2 +- tldr/crane-rebase | 4 ++-- tldr/crane-registry | 4 ++-- tldr/crane-tag | 2 +- tldr/crane-validate | 2 +- tldr/crane-version | 2 +- tldr/diff | 14 +++++++------- tldr/ffsend | 6 +++--- tldr/filebrowser | 14 +++++++------- tldr/frpc | 8 ++++---- tldr/frps | 8 ++++---- tldr/g++ | 14 +++++++------- tldr/gcc | 14 +++++++------- tldr/gcrane | 4 ++-- tldr/gcrane-copy | 8 ++++---- tldr/gcrane-gc | 4 ++-- tldr/gcrane-help | 2 +- tldr/gcrane-ls | 4 ++-- tldr/git-bugreport | 4 ++-- tldr/git-cliff | 6 +++--- tldr/git-commit | 10 +++++----- tldr/git-pull | 2 +- tldr/git-switch | 6 +++--- tldr/grep | 12 ++++++------ tldr/gzip | 12 ++++++------ tldr/http | 2 +- tldr/img2sixel | 2 +- tldr/linux/agetty | 8 ++++---- tldr/linux/blkpr | 10 +++++----- tldr/linux/dos2unix | 4 ++-- tldr/linux/efibootmgr | 6 +++--- tldr/linux/emerge | 10 +++++----- tldr/linux/fatrace | 2 +- tldr/linux/fuzzel | 2 +- tldr/linux/gcrane-completion | 2 +- tldr/linux/getsebool | 2 +- tldr/linux/grub2-mkpasswd-pbkdf2 | 2 +- tldr/linux/hyprpm | 2 +- tldr/linux/ip-route-show | 16 ++++++++-------- tldr/linux/look | 6 +++--- tldr/linux/mac2unix | 4 ++-- tldr/linux/protonvpn-connect | 10 +++++----- tldr/linux/pw-dot | 12 ++++++------ tldr/linux/pw-metadata | 8 ++++---- tldr/linux/run0 | 2 +- tldr/linux/sbctl | 2 +- tldr/linux/semanage | 10 +++++----- tldr/linux/semanage-boolean | 6 +++--- tldr/linux/semanage-permissive | 2 +- tldr/linux/semanage-port | 10 +++++----- tldr/linux/setsebool | 2 +- tldr/linux/showkey | 6 +++--- tldr/linux/size | 6 +++--- tldr/linux/ss | 16 ++++++++-------- tldr/linux/tc | 14 +++++++------- tldr/linux/tlp-stat | 8 ++++---- tldr/linux/tune.exfat | 12 ++++++------ tldr/linux/unix2dos | 4 ++-- tldr/linux/unix2mac | 4 ++-- tldr/linux/unopkg | 2 +- tldr/linux/useradd | 12 ++++++------ tldr/linux/userdel | 4 ++-- tldr/linux/usermod | 10 +++++----- tldr/lsar | 2 +- tldr/mitmproxy | 6 +++--- tldr/nettacker | 6 +++--- tldr/npm-audit | 2 +- tldr/npm-install | 2 +- tldr/ntfyme | 4 ++-- tldr/onefetch | 4 ++-- tldr/pandoc | 6 +++--- tldr/pg_dumpall | 4 ++-- tldr/podman-compose | 2 +- tldr/pulumi | 2 +- tldr/pulumi-login | 2 +- tldr/pulumi-logout | 4 ++-- tldr/pulumi-version | 2 +- tldr/pulumi-whoami | 6 +++--- tldr/pydocstyle | 4 ++-- tldr/toipe | 8 ++++---- tldr/typeinc | 6 +++--- tldr/uv-tree | 2 +- tldr/waybar | 6 +++--- tldr/zapier-analytics | 4 ++-- tldr/zapier-build | 2 +- tldr/zapier-convert | 2 +- tldr/zapier-init | 4 ++-- tldr/zapier-push | 2 +- tldr/zapier-scaffold | 6 +++--- 116 files changed, 330 insertions(+), 330 deletions(-) diff --git a/tldr/animdl b/tldr/animdl index 4f8d6b4c..c0500fec 100644 --- a/tldr/animdl +++ b/tldr/animdl @@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git - Download a specific anime by specifying an episode range: -`animdl download {{anime_title}} {{-r|--range}} {{start_episode}}-{{end_episode}}` +`animdl download {{anime_title}} {{[-r|--range]}} {{start_episode}}-{{end_episode}}` - Download a specific anime by specifying a download directory: -`animdl download {{anime_title}} {{-d|--download-dir}} {{path/to/download_directory}}` +`animdl download {{anime_title}} {{[-d|--download-dir]}} {{path/to/download_directory}}` - Grab the stream URL for a specific anime: @@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git - Stream the latest episode of a specific anime: -`animdl stream {{anime_title}} {{-s|--special}} latest` +`animdl stream {{anime_title}} {{[-s|--special]}} latest` diff --git a/tldr/ansible-galaxy b/tldr/ansible-galaxy index 4cb3b821..f6f278a9 100644 --- a/tldr/ansible-galaxy +++ b/tldr/ansible-galaxy @@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help about roles or collections: -`ansible-galaxy {{role|collection}} {{-h|--help}}` +`ansible-galaxy {{role|collection}} {{[-h|--help]}}` diff --git a/tldr/asciinema b/tldr/asciinema index a4f81037..f24b180d 100644 --- a/tldr/asciinema +++ b/tldr/asciinema @@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git - Make a new recording, limiting any idle time to at most 2.5 seconds: -`asciinema rec {{-i|--idle-time-limit}} 2.5` +`asciinema rec {{[-i|--idle-time-limit]}} 2.5` - Print the full output of a locally saved recording: diff --git a/tldr/azurite b/tldr/azurite index 41022285..e5f3c82d 100644 --- a/tldr/azurite +++ b/tldr/azurite @@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git - Use an existing location as workspace path: -`azurite {{-l|--location}} {{path/to/directory}}` +`azurite {{[-l|--location]}} {{path/to/directory}}` - Disable access log displayed in console: -`azurite {{-s|--silent}}` +`azurite {{[-s|--silent]}}` - Enable debug log by providing a file path as log destination: -`azurite {{-d|--debug}} {{path/to/debug.log}}` +`azurite {{[-d|--debug]}} {{path/to/debug.log}}` - Customize the listening address of Blob/Queue/Table service: diff --git a/tldr/base32 b/tldr/base32 index 01cc1cbf..bfd6f1db 100644 --- a/tldr/base32 +++ b/tldr/base32 @@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git - Wrap encoded output at a specific width (`0` disables wrapping): -`base32 {{-w|--wrap}} {{0|76|...}} {{path/to/file}}` +`base32 {{[-w|--wrap]}} {{0|76|...}} {{path/to/file}}` - Decode a file: -`base32 {{-d|--decode}} {{path/to/file}}` +`base32 {{[-d|--decode]}} {{path/to/file}}` - Encode from `stdin`: @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Decode from `stdin`: -`{{command}} | base32 {{-d|--decode}}` +`{{command}} | base32 {{[-d|--decode]}}` diff --git a/tldr/base64 b/tldr/base64 index 05ba5f15..f1962870 100644 --- a/tldr/base64 +++ b/tldr/base64 @@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git - Wrap encoded output at a specific width (`0` disables wrapping): -`base64 {{-w|--wrap}} {{0|76|...}} {{path/to/file}}` +`base64 {{[-w|--wrap]}} {{0|76|...}} {{path/to/file}}` - Decode a file: -`base64 {{-d|--decode}} {{path/to/file}}` +`base64 {{[-d|--decode]}} {{path/to/file}}` - Encode from `stdin`: @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Decode from `stdin`: -`{{command}} | base64 {{-d|--decode}}` +`{{command}} | base64 {{[-d|--decode]}}` diff --git a/tldr/bat b/tldr/bat index 91a79359..9d38afe2 100644 --- a/tldr/bat +++ b/tldr/bat @@ -23,20 +23,20 @@ source: https://github.com/tldr-pages/tldr.git - Highlight a specific line or a range of lines with a different background color: -`bat {{-H|--highlight-line}} {{10|5:10|:10|10:|10:+5}} {{path/to/file}}` +`bat {{[-H|--highlight-line]}} {{10|5:10|:10|10:|10:+5}} {{path/to/file}}` - Show non-printable characters like space, tab or newline: -`bat {{-A|--show-all}} {{path/to/file}}` +`bat {{[-A|--show-all]}} {{path/to/file}}` - Remove all decorations except line numbers in the output: -`bat {{-n|--number}} {{path/to/file}}` +`bat {{[-n|--number]}} {{path/to/file}}` - Syntax highlight a JSON file by explicitly setting the language: -`bat {{-l|--language}} json {{path/to/file.json}}` +`bat {{[-l|--language]}} json {{path/to/file.json}}` - Display all supported languages: -`bat {{-L|--list-languages}}` +`bat {{[-L|--list-languages]}}` diff --git a/tldr/calibredb b/tldr/calibredb index ce16256a..e93635bb 100644 --- a/tldr/calibredb +++ b/tldr/calibredb @@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Recursively add all e-books under a directory to the library: -`calibredb add {{-r|--recurse}} {{path/to/directory}}` +`calibredb add {{[-r|--recurse]}} {{path/to/directory}}` - Remove one or more e-books from the library. You need the e-book IDs (see above): diff --git a/tldr/clang b/tldr/clang index 7755fbad..f40b6a23 100644 --- a/tldr/clang +++ b/tldr/clang @@ -11,31 +11,31 @@ source: https://github.com/tldr-pages/tldr.git - Compile multiple source files into an executable: -`clang {{path/to/source1.c path/to/source2.c ...}} {{-o|--output}} {{path/to/output_executable}}` +`clang {{path/to/source1.c path/to/source2.c ...}} {{[-o|--output]}} {{path/to/output_executable}}` - Activate output of all errors and warnings: -`clang {{path/to/source.c}} -Wall {{-o|--output}} {{output_executable}}` +`clang {{path/to/source.c}} -Wall {{[-o|--output]}} {{output_executable}}` - Show common warnings, debug symbols in output, and optimize without affecting debugging: -`clang {{path/to/source.c}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}` +`clang {{path/to/source.c}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}` - Include libraries from a different path: -`clang {{path/to/source.c}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}` +`clang {{path/to/source.c}} {{[-o|--output]}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}` - Compile source code into LLVM Intermediate Representation (IR): -`clang {{-S|--assemble}} -emit-llvm {{path/to/source.c}} {{-o|--output}} {{path/to/output.ll}}` +`clang {{[-S|--assemble]}} -emit-llvm {{path/to/source.c}} {{[-o|--output]}} {{path/to/output.ll}}` - Compile source code into an object file without linking: -`clang {{-c|--compile}} {{path/to/source.c}}` +`clang {{[-c|--compile]}} {{path/to/source.c}}` - Optimize the compiled program for performance: -`clang {{path/to/source.c}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}` +`clang {{path/to/source.c}} -O{{1|2|3|fast}} {{[-o|--output]}} {{path/to/output_executable}}` - Display version: diff --git a/tldr/clang++ b/tldr/clang++ index d7a5800c..acef1048 100644 --- a/tldr/clang++ +++ b/tldr/clang++ @@ -11,31 +11,31 @@ source: https://github.com/tldr-pages/tldr.git - Compile a set of source code files into an executable binary: -`clang++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{-o|--output}} {{path/to/output_executable}}` +`clang++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{[-o|--output]}} {{path/to/output_executable}}` - Activate output of all errors and warnings: -`clang++ {{path/to/source.cpp}} -Wall {{-o|--output}} {{output_executable}}` +`clang++ {{path/to/source.cpp}} -Wall {{[-o|--output]}} {{output_executable}}` - Show common warnings, debug symbols in output, and optimize without affecting debugging: -`clang++ {{path/to/source.cpp}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}` +`clang++ {{path/to/source.cpp}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}` - Choose a language standard to compile for: -`clang++ {{path/to/source.cpp}} -std={{c++20}} {{-o|--output}} {{path/to/output_executable}}` +`clang++ {{path/to/source.cpp}} -std={{c++20}} {{[-o|--output]}} {{path/to/output_executable}}` - Include libraries located at a different path than the source file: -`clang++ {{path/to/source.cpp}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header_path}} -L{{path/to/library_path}} -l{{path/to/library_name}}` +`clang++ {{path/to/source.cpp}} {{[-o|--output]}} {{path/to/output_executable}} -I{{path/to/header_path}} -L{{path/to/library_path}} -l{{path/to/library_name}}` - Compile source code into LLVM Intermediate Representation (IR): -`clang++ {{-S|--assemble}} -emit-llvm {{path/to/source.cpp}} {{-o|--output}} {{path/to/output.ll}}` +`clang++ {{[-S|--assemble]}} -emit-llvm {{path/to/source.cpp}} {{[-o|--output]}} {{path/to/output.ll}}` - Optimize the compiled program for performance: -`clang++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}` +`clang++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{[-o|--output]}} {{path/to/output_executable}}` - Display version: diff --git a/tldr/crane b/tldr/crane index 7c06dc37..489def62 100644 --- a/tldr/crane +++ b/tldr/crane @@ -27,8 +27,8 @@ source: https://github.com/tldr-pages/tldr.git - Enable debug logs for a subcommand: -`crane {{-v|--verbose}} {{subcommand}}` +`crane {{[-v|--verbose]}} {{subcommand}}` - Display help for a subcommand: -`crane {{-h|--help}} {{subcommand}}` +`crane {{[-h|--help]}} {{subcommand}}` diff --git a/tldr/crane-append b/tldr/crane-append index 2986d9e9..a5a63027 100644 --- a/tldr/crane-append +++ b/tldr/crane-append @@ -11,19 +11,19 @@ source: https://github.com/tldr-pages/tldr.git - Push image based on a base image: -`crane append {{-b|--base}} {{image_name}}` +`crane append {{[-b|--base]}} {{image_name}}` - Push image with appended layer from tarball: -`crane append {{-f|--new_layer}} {{layer_name1 layer_name2 ...}}` +`crane append {{[-f|--new_layer]}} {{layer_name1 layer_name2 ...}}` - Push image with appended layer with new tag: -`crane append {{-t|--new_tag}} {{tag_name}}` +`crane append {{[-t|--new_tag]}} {{tag_name}}` - Push resulting image to new tarball: -`crane append {{-o|--output}} {{path/to/tarball}}` +`crane append {{[-o|--output]}} {{path/to/tarball}}` - Use empty base image of type OCI media instead of Docker: @@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane append {{-h|--help}}` +`crane append {{[-h|--help]}}` diff --git a/tldr/crane-auth b/tldr/crane-auth index 4c752a7d..7a2bb9c5 100644 --- a/tldr/crane-auth +++ b/tldr/crane-auth @@ -14,20 +14,20 @@ source: https://github.com/tldr-pages/tldr.git - Implement credential helper: -`crane auth get {{registry_address}} {{-h|--help}}` +`crane auth get {{registry_address}} {{[-h|--help]}}` - Log in to a registry: -`crane auth login {{registry_address}} {{-h|--help}} {{-p|--password}} {{password}} {{-password-stdin}} {{-u|--username}} {{username}}` +`crane auth login {{registry_address}} {{[-h|--help]}} {{[-p|--password]}} {{password}} {{-password-stdin}} {{[-u|--username]}} {{username}}` - Log out of a registry: -`crane auth logout {{registry_address}} {{-h|--help}}` +`crane auth logout {{registry_address}} {{[-h|--help]}}` - Retrieve a token for a remote repository: -`crane auth token {{registry_address}} {{-H|--header}} {{-h|--help}} {{-m|--mount}} {{scope1 scope2 ...}} --push` +`crane auth token {{registry_address}} {{[-H|--header]}} {{[-h|--help]}} {{[-m|--mount]}} {{scope1 scope2 ...}} --push` - Display help: -`crane auth {{-h|--help}}` +`crane auth {{[-h|--help]}}` diff --git a/tldr/crane-blob b/tldr/crane-blob index bcd39099..6104136e 100644 --- a/tldr/crane-blob +++ b/tldr/crane-blob @@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane blob {{-h|--help}}` +`crane blob {{[-h|--help]}}` diff --git a/tldr/crane-catalog b/tldr/crane-catalog index 1f0c396e..c04bdcf0 100644 --- a/tldr/crane-catalog +++ b/tldr/crane-catalog @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane catalog {{-h|--help}}` +`crane catalog {{[-h|--help]}}` diff --git a/tldr/crane-config b/tldr/crane-config index c20aa551..c01e6138 100644 --- a/tldr/crane-config +++ b/tldr/crane-config @@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane config {{-h|--help}}` +`crane config {{[-h|--help]}}` diff --git a/tldr/crane-copy b/tldr/crane-copy index e36952b5..4f55b60b 100644 --- a/tldr/crane-copy +++ b/tldr/crane-copy @@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git - Copy all tags: -`crane copy {{source}} {{target}} {{-a|--all-tags}}` +`crane copy {{source}} {{target}} {{[-a|--all-tags]}}` - Set the maximum number of concurrent copies, defaults to GOMAXPROCS: -`crane copy {{source}} {{target}} {{-j|--jobs}} {{int}}` +`crane copy {{source}} {{target}} {{[-j|--jobs]}} {{int}}` - Avoid overwriting existing tags in target: -`crane copy {{source}} {{target}} {{-n|--no-clobber}}` +`crane copy {{source}} {{target}} {{[-n|--no-clobber]}}` - Display help: -`crane copy {{-h|--help}}` +`crane copy {{[-h|--help]}}` diff --git a/tldr/crane-delete b/tldr/crane-delete index 5f67172b..1efd3267 100644 --- a/tldr/crane-delete +++ b/tldr/crane-delete @@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane delete {{-h|--help}}` +`crane delete {{[-h|--help]}}` diff --git a/tldr/crane-digest b/tldr/crane-digest index 9a20440f..c8cb739f 100644 --- a/tldr/crane-digest +++ b/tldr/crane-digest @@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane digest {{-h|--help}}` +`crane digest {{[-h|--help]}}` diff --git a/tldr/crane-flatten b/tldr/crane-flatten index 8d340cce..4866fe29 100644 --- a/tldr/crane-flatten +++ b/tldr/crane-flatten @@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git - Apply new tag to flattened image: -`crane flatten {{-t|--tag}} {{tag_name}}` +`crane flatten {{[-t|--tag]}} {{tag_name}}` - Display help: -`crane flatten {{-h|--help}}` +`crane flatten {{[-h|--help]}}` diff --git a/tldr/crane-index b/tldr/crane-index index e661e16b..f93bd46a 100644 --- a/tldr/crane-index +++ b/tldr/crane-index @@ -19,4 +19,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane index {{-h|--help}}` +`crane index {{[-h|--help]}}` diff --git a/tldr/crane-index-append b/tldr/crane-index-append index ddd9c984..b0ff68a1 100644 --- a/tldr/crane-index-append +++ b/tldr/crane-index-append @@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git - Reference to manifests to append to the base index: -`crane index append {{-m|--manifest}} {{manifest_name1 manifest_name2 ...}}` +`crane index append {{[-m|--manifest]}} {{manifest_name1 manifest_name2 ...}}` - Tag to apply to resulting image: -`crane index append {{-t|--tag}} {{tag_name}}` +`crane index append {{[-t|--tag]}} {{tag_name}}` - Empty base index will have Docker media types instead of OCI: @@ -32,4 +32,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane index append {{-h|--help}}` +`crane index append {{[-h|--help]}}` diff --git a/tldr/crane-index-filter b/tldr/crane-index-filter index 86c41985..14e69cb4 100644 --- a/tldr/crane-index-filter +++ b/tldr/crane-index-filter @@ -18,8 +18,8 @@ source: https://github.com/tldr-pages/tldr.git - Tag to apply to resulting image: -`crane index filter {{-t|--tags}} {{tag_name}}` +`crane index filter {{[-t|--tags]}} {{tag_name}}` - Display help: -`crane index filter {{-h|--help}}` +`crane index filter {{[-h|--help]}}` diff --git a/tldr/crane-ls b/tldr/crane-ls index 3d1e32db..ad435a8d 100644 --- a/tldr/crane-ls +++ b/tldr/crane-ls @@ -18,8 +18,8 @@ source: https://github.com/tldr-pages/tldr.git - Omit digest tags: -`crane ls {{-o|--omit-digest-tags}}` +`crane ls {{[-o|--omit-digest-tags]}}` - Display help: -`crane ls {{-h|--help}}` +`crane ls {{[-h|--help]}}` diff --git a/tldr/crane-manifest b/tldr/crane-manifest index 0e41ce58..4495e408 100644 --- a/tldr/crane-manifest +++ b/tldr/crane-manifest @@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane manifest {{-h|--help}}` +`crane manifest {{[-h|--help]}}` diff --git a/tldr/crane-mutate b/tldr/crane-mutate index e1928f4c..614c5139 100644 --- a/tldr/crane-mutate +++ b/tldr/crane-mutate @@ -11,15 +11,15 @@ source: https://github.com/tldr-pages/tldr.git - New annotations to set (default []): -`crane mutate {{-a|--annotation}}/{{-l|--label}} {{annotation/label}}` +`crane mutate {{[-a|--annotation]}}/{{[-l|--label]}} {{annotation/label}}` - Path to tarball/command/entrypoint/environment variable/exposed-ports to append to image: -`crane mutate {{--append}}/{{--cmd}}/{{--entrypoint}}/{{-e|--env}}/{{--exposed-ports}} {{var1 var2 ...}}` +`crane mutate {{--append}}/{{--cmd}}/{{--entrypoint}}/{{[-e|--env]}}/{{--exposed-ports}} {{var1 var2 ...}}` - Path to new tarball of resulting image: -`crane mutate {{-o|--output}} {{path/to/tarball}}` +`crane mutate {{[-o|--output]}} {{path/to/tarball}}` - Repository in the form os/arch{{/variant}}{{:osversion}}{{,}} to push mutated image: @@ -27,16 +27,16 @@ source: https://github.com/tldr-pages/tldr.git - New tag reference to apply to mutated image: -`crane mutate {{-t|--tag}} {{tag_name}}` +`crane mutate {{[-t|--tag]}} {{tag_name}}` - New user to set: -`crane mutate {{-u|--user}} {{username}}` +`crane mutate {{[-u|--user]}} {{username}}` - New working dir to set: -`crane mutate {{-w|--workdir}} {{path/to/workdir}}` +`crane mutate {{[-w|--workdir]}} {{path/to/workdir}}` - Display help: -`crane mutate {{-h|--help}}` +`crane mutate {{[-h|--help]}}` diff --git a/tldr/crane-pull b/tldr/crane-pull index 92ba8df8..89558abe 100644 --- a/tldr/crane-pull +++ b/tldr/crane-pull @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Path to cache image layers: -`crane pull {{image_name}} {{path/to/tarball}} {{-c|--cache_path}} {{path/to/cache}}` +`crane pull {{image_name}} {{path/to/tarball}} {{[-c|--cache_path]}} {{path/to/cache}}` - Format in which to save images (default 'tarball'): @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane pull {{-h|--help}}` +`crane pull {{[-h|--help]}}` diff --git a/tldr/crane-push b/tldr/crane-push index 5d379b41..0cc0fa62 100644 --- a/tldr/crane-push +++ b/tldr/crane-push @@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane push {{-h|--help}}` +`crane push {{[-h|--help]}}` diff --git a/tldr/crane-rebase b/tldr/crane-rebase index 034b2448..e768b3fe 100644 --- a/tldr/crane-rebase +++ b/tldr/crane-rebase @@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git - Tag to apply to rebased image: -`crane rebase {{-t|--tag}} {{tag_name}}` +`crane rebase {{[-t|--tag]}} {{tag_name}}` - Display help: -`crane rebase {{-h|--help}}` +`crane rebase {{[-h|--help]}}` diff --git a/tldr/crane-registry b/tldr/crane-registry index d77baac1..75ae479a 100644 --- a/tldr/crane-registry +++ b/tldr/crane-registry @@ -23,8 +23,8 @@ source: https://github.com/tldr-pages/tldr.git - Display help for `crane registry`: -`crane registry {{-h|--help}}` +`crane registry {{[-h|--help]}}` - Display help for `crane registry serve`: -`crane registry serve {{-h|--help}}` +`crane registry serve {{[-h|--help]}}` diff --git a/tldr/crane-tag b/tldr/crane-tag index 2b07524f..f501c058 100644 --- a/tldr/crane-tag +++ b/tldr/crane-tag @@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane tag {{-h|--help}}` +`crane tag {{[-h|--help]}}` diff --git a/tldr/crane-validate b/tldr/crane-validate index d1002b2f..5cacba8e 100644 --- a/tldr/crane-validate +++ b/tldr/crane-validate @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane validate {{-h|--help}}` +`crane validate {{[-h|--help]}}` diff --git a/tldr/crane-version b/tldr/crane-version index 0155a808..6658c366 100644 --- a/tldr/crane-version +++ b/tldr/crane-version @@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`crane version {{-h|--help}}` +`crane version {{[-h|--help]}}` diff --git a/tldr/diff b/tldr/diff index bfa75ca7..3d8b72db 100644 --- a/tldr/diff +++ b/tldr/diff @@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git - Compare files, ignoring white spaces: -`diff {{-w|--ignore-all-space}} {{old_file}} {{new_file}}` +`diff {{[-w|--ignore-all-space]}} {{old_file}} {{new_file}}` - Compare files, showing the differences side by side: -`diff {{-y|--side-by-side}} {{old_file}} {{new_file}}` +`diff {{[-y|--side-by-side]}} {{old_file}} {{new_file}}` - Compare files, showing the differences in unified format (as used by `git diff`): -`diff {{-u|--unified}} {{old_file}} {{new_file}}` +`diff {{[-u|--unified]}} {{old_file}} {{new_file}}` - Compare directories recursively (shows names for differing files/directories as well as changes made to files): -`diff {{-r|--recursive}} {{old_directory}} {{new_directory}}` +`diff {{[-r|--recursive]}} {{old_directory}} {{new_directory}}` - Compare directories, only showing the names of files that differ: -`diff {{-r|--recursive}} {{-q|--brief}} {{old_directory}} {{new_directory}}` +`diff {{[-r|--recursive]}} {{[-q|--brief]}} {{old_directory}} {{new_directory}}` - Create a patch file for Git from the differences of two text files, treating nonexistent files as empty: -`diff {{-a|--text}} {{-u|--unified}} {{-N|--new-file}} {{old_file}} {{new_file}} > {{diff.patch}}` +`diff {{[-a|--text]}} {{[-u|--unified]}} {{[-N|--new-file]}} {{old_file}} {{new_file}} > {{diff.patch}}` - Compare files, showing output in color and try hard to find smaller set of changes: -`diff {{-d|--minimal}} --color=always {{old_file}} {{new_file}}` +`diff {{[-d|--minimal]}} --color=always {{old_file}} {{new_file}}` diff --git a/tldr/ffsend b/tldr/ffsend index 69ecda62..8fe15406 100644 --- a/tldr/ffsend +++ b/tldr/ffsend @@ -18,12 +18,12 @@ source: https://github.com/tldr-pages/tldr.git - Upload a file with password: -`ffsend upload {{path/to/file}} {{-p|--password}} {{password}}` +`ffsend upload {{path/to/file}} {{[-p|--password]}} {{password}}` - Download a file protected by password: -`ffsend download {{url}} {{-p|--password}} {{password}}` +`ffsend download {{url}} {{[-p|--password]}} {{password}}` - Upload a file and allow 4 downloads: -`ffsend upload {{path/to/file}} {{-d|--downloads}} {{4}}` +`ffsend upload {{path/to/file}} {{[-d|--downloads]}} {{4}}` diff --git a/tldr/filebrowser b/tldr/filebrowser index cc37e160..1b6a5f92 100644 --- a/tldr/filebrowser +++ b/tldr/filebrowser @@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git - Start a new server instance serving a specific root directory: -`filebrowser {{-r|--root}} {{path/to/directory}}` +`filebrowser {{[-r|--root]}} {{path/to/directory}}` - Start an instance with different host address (defaults to `127.0.0.1`) and port (defaults to `8080`): -`filebrowser {{-a|--address}} {{host}} {{-p|--port}} {{port}} {{-r|--root}} {{path/to/directory}}` +`filebrowser {{[-a|--address]}} {{host}} {{[-p|--port]}} {{port}} {{[-r|--root]}} {{path/to/directory}}` - Start an instance with a specified configuration file, storing the application database in a specific location (defaults to `filebrowser.db` on the current directory): -`filebrowser {{-c|--config}} {{path/to/file}} {{-d|--database}} {{path/to/database.db}} {{-r|--root}} {{path/to/directory}}` +`filebrowser {{[-c|--config]}} {{path/to/file}} {{[-d|--database]}} {{path/to/database.db}} {{[-r|--root]}} {{path/to/directory}}` - Set up a different default first-time account username and password (both default to `admin`) when setting up a new instance: -`filebrowser --username {{username}} --password {{password}} {{-r|--root}} {{path/to/directory}}` +`filebrowser --username {{username}} --password {{password}} {{[-r|--root]}} {{path/to/directory}}` - Set up the maximum amount of image processors used when generating thumbnails (defaults to `4`): -`filebrowser --img-processors {{4}} {{-r|--root}} {{path/to/directory}}` +`filebrowser --img-processors {{4}} {{[-r|--root]}} {{path/to/directory}}` - Disable image thumbnails as well as the Command Runner feature, limiting access for hosted script files from being executed inside the app: -`filebrowser --disable-exec --disable-thumbnails {{-r|--root}} {{path/to/directory}}` +`filebrowser --disable-exec --disable-thumbnails {{[-r|--root]}} {{path/to/directory}}` - Disable resizing of image previews as well as detecting file types by reading their headers: -`filebrowser --disable-preview-resize --disable-type-detection-by-header {{-r|--root}} {{path/to/directory}}` +`filebrowser --disable-preview-resize --disable-type-detection-by-header {{[-r|--root]}} {{path/to/directory}}` diff --git a/tldr/frpc b/tldr/frpc index 47f8f659..84501d76 100644 --- a/tldr/frpc +++ b/tldr/frpc @@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git - Start the service, using the newer TOML configuration file (`frps.toml` instead of `frps.ini`) in the current directory: -`frpc {{-c|--config}} ./frps.toml` +`frpc {{[-c|--config]}} ./frps.toml` - Start the service, using a specific configuration file: -`frpc {{-c|--config}} {{path/to/file}}` +`frpc {{[-c|--config]}} {{path/to/file}}` - Check if the configuration file is valid: -`frpc verify {{-c|--config}} {{path/to/file}}` +`frpc verify {{[-c|--config]}} {{path/to/file}}` - Print autocompletion setup script for Bash, fish, PowerShell, or Zsh: @@ -31,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git - Display version: -`frpc {{-v|--version}}` +`frpc {{[-v|--version]}}` diff --git a/tldr/frps b/tldr/frps index df3771ed..4c804495 100644 --- a/tldr/frps +++ b/tldr/frps @@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git - Start the service, using the newer TOML configuration file (`frps.toml` instead of `frps.ini`) in the current directory: -`frps {{-c|--config}} ./frps.toml` +`frps {{[-c|--config]}} ./frps.toml` - Start the service, using a specified config file: -`frps {{-c|--config}} {{path/to/file}}` +`frps {{[-c|--config]}} {{path/to/file}}` - Check if the configuration file is valid: -`frps verify {{-c|--config}} {{path/to/file}}` +`frps verify {{[-c|--config]}} {{path/to/file}}` - Print autocompletion setup script for Bash, fish, PowerShell, or Zsh: @@ -31,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git - Display version: -`frps {{-v|--version}}` +`frps {{[-v|--version]}}` diff --git a/tldr/g++ b/tldr/g++ index b33ee3b0..954dcec9 100644 --- a/tldr/g++ +++ b/tldr/g++ @@ -11,31 +11,31 @@ source: https://github.com/tldr-pages/tldr.git - Compile a source code file into an executable binary: -`g++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{-o|--output}} {{path/to/output_executable}}` +`g++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{[-o|--output]}} {{path/to/output_executable}}` - Activate output of all errors and warnings: -`g++ {{path/to/source.cpp}} -Wall {{-o|--output}} {{output_executable}}` +`g++ {{path/to/source.cpp}} -Wall {{[-o|--output]}} {{output_executable}}` - Show common warnings, debug symbols in output, and optimize without affecting debugging: -`g++ {{path/to/source.cpp}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}` +`g++ {{path/to/source.cpp}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}` - Choose a language standard to compile for (C++98/C++11/C++14/C++17): -`g++ {{path/to/source.cpp}} -std={{c++98|c++11|c++14|c++17}} {{-o|--output}} {{path/to/output_executable}}` +`g++ {{path/to/source.cpp}} -std={{c++98|c++11|c++14|c++17}} {{[-o|--output]}} {{path/to/output_executable}}` - Include libraries located at a different path than the source file: -`g++ {{path/to/source.cpp}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}` +`g++ {{path/to/source.cpp}} {{[-o|--output]}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}` - Compile and link multiple source code files into an executable binary: -`g++ {{-c|--compile}} {{path/to/source1.cpp path/to/source2.cpp ...}} && g++ {{-o|--output}} {{path/to/output_executable}} {{path/to/source1.o path/to/source2.o ...}}` +`g++ {{[-c|--compile]}} {{path/to/source1.cpp path/to/source2.cpp ...}} && g++ {{[-o|--output]}} {{path/to/output_executable}} {{path/to/source1.o path/to/source2.o ...}}` - Optimize the compiled program for performance: -`g++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}` +`g++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{[-o|--output]}} {{path/to/output_executable}}` - Display version: diff --git a/tldr/gcc b/tldr/gcc index 1f615cfe..660250c2 100644 --- a/tldr/gcc +++ b/tldr/gcc @@ -11,31 +11,31 @@ source: https://github.com/tldr-pages/tldr.git - Compile multiple source files into an executable: -`gcc {{path/to/source1.c path/to/source2.c ...}} {{-o|--output}} {{path/to/output_executable}}` +`gcc {{path/to/source1.c path/to/source2.c ...}} {{[-o|--output]}} {{path/to/output_executable}}` - Activate output of all errors and warnings: -`gcc {{path/to/source.c}} -Wall {{-o|--output}} {{output_executable}}` +`gcc {{path/to/source.c}} -Wall {{[-o|--output]}} {{output_executable}}` - Show common warnings, debug symbols in output, and optimize without affecting debugging: -`gcc {{path/to/source.c}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}` +`gcc {{path/to/source.c}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}` - Include libraries from a different path: -`gcc {{path/to/source.c}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}` +`gcc {{path/to/source.c}} {{[-o|--output]}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}` - Compile source code into Assembler instructions: -`gcc {{-S|--assemble}} {{path/to/source.c}}` +`gcc {{[-S|--assemble]}} {{path/to/source.c}}` - Compile source code into an object file without linking: -`gcc {{-c|--compile}} {{path/to/source.c}}` +`gcc {{[-c|--compile]}} {{path/to/source.c}}` - Optimize the compiled program for performance: -`gcc {{path/to/source.c}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}` +`gcc {{path/to/source.c}} -O{{1|2|3|fast}} {{[-o|--output]}} {{path/to/output_executable}}` - Display version: diff --git a/tldr/gcrane b/tldr/gcrane index ad634298..3cfbafae 100644 --- a/tldr/gcrane +++ b/tldr/gcrane @@ -29,8 +29,8 @@ source: https://github.com/tldr-pages/tldr.git - Enable debug logs: -`gcrane {{-v|--verbose}} {{subcommand}}` +`gcrane {{[-v|--verbose]}} {{subcommand}}` - Display help: -`gcrane {{-h|--help}}` +`gcrane {{[-h|--help]}}` diff --git a/tldr/gcrane-copy b/tldr/gcrane-copy index 4c5b860b..a6b5a7ae 100644 --- a/tldr/gcrane-copy +++ b/tldr/gcrane-copy @@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git - Copy an image from source to target: -`gcrane {{cp|copy}} {{source}} {{target}}` +`gcrane {{[cp|copy]}} {{source}} {{target}}` - Set the maximum number of concurrent copies, defaults to 20: -`gcrane copy {{source}} {{target}} {{-j|--jobs}} {{nr_of_copies}}` +`gcrane copy {{source}} {{target}} {{[-j|--jobs]}} {{nr_of_copies}}` - Whether to recurse through repositories: -`gcrane copy {{source}} {{target}} {{-r|--recursive}}` +`gcrane copy {{source}} {{target}} {{[-r|--recursive]}}` - Display help: -`gcrane copy {{-h|--help}}` +`gcrane copy {{[-h|--help]}}` diff --git a/tldr/gcrane-gc b/tldr/gcrane-gc index edc9147a..35878268 100644 --- a/tldr/gcrane-gc +++ b/tldr/gcrane-gc @@ -16,8 +16,8 @@ source: https://github.com/tldr-pages/tldr.git - Whether to recurse through repositories: -`gcrane gc {{repository}} {{-r|--recursive}}` +`gcrane gc {{repository}} {{[-r|--recursive]}}` - Display help: -`gcrane gc {{-h|--help}}` +`gcrane gc {{[-h|--help]}}` diff --git a/tldr/gcrane-help b/tldr/gcrane-help index ed8eb0f9..22bd4cbe 100644 --- a/tldr/gcrane-help +++ b/tldr/gcrane-help @@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`gcrane help {{-h|--help}}` +`gcrane help {{[-h|--help]}}` diff --git a/tldr/gcrane-ls b/tldr/gcrane-ls index 5907dbe0..5cedc873 100644 --- a/tldr/gcrane-ls +++ b/tldr/gcrane-ls @@ -19,8 +19,8 @@ source: https://github.com/tldr-pages/tldr.git - Whether to recurse through repositories: -`gcrane ls {{repository}} {{-r|--recursive}}` +`gcrane ls {{repository}} {{[-r|--recursive]}}` - Display help: -`gcrane ls {{-h|--help}}` +`gcrane ls {{[-h|--help]}}` diff --git a/tldr/git-bugreport b/tldr/git-bugreport index 3283c62f..5911e662 100644 --- a/tldr/git-bugreport +++ b/tldr/git-bugreport @@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git - Create a new bug report file in the specified directory, creating it if it does not exist: -`git bugreport {{-o|--output-directory}} {{path/to/directory}}` +`git bugreport {{[-o|--output-directory]}} {{path/to/directory}}` - Create a new bug report file with the specified filename suffix in `strftime` format: -`git bugreport {{-s|--suffix}} {{%m%d%y}}` +`git bugreport {{[-s|--suffix]}} {{%m%d%y}}` diff --git a/tldr/git-cliff b/tldr/git-cliff index 7338fa7c..e6e01670 100644 --- a/tldr/git-cliff +++ b/tldr/git-cliff @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Generate a changelog from commits starting from the latest tag and print it to `stdout`: -`git cliff {{-l|--latest}}` +`git cliff {{[-l|--latest]}}` - Generate a changelog from commits that belong to the current tag (use `git checkout` on a tag before this): @@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git - Generate a changelog from commits that do not belong to a tag: -`git cliff {{-u|--unreleased}}` +`git cliff {{[-u|--unreleased]}}` - Write the default config file to `cliff.toml` in the current directory: -`git cliff {{-i|--init}}` +`git cliff {{[-i|--init]}}` diff --git a/tldr/git-commit b/tldr/git-commit index a6c3e96d..6e873b9a 100644 --- a/tldr/git-commit +++ b/tldr/git-commit @@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git - Commit staged files to the repository with a message: -`git commit --message "{{message}}"` +`git commit {{[-m|--message]}} "{{message}}"` - Commit staged files with a message read from a file: -`git commit --file {{path/to/commit_message_file}}` +`git commit {{[-F|--file]}} {{path/to/commit_message_file}}` - Auto stage all modified and deleted files and commit with a message: -`git commit --all --message "{{message}}"` +`git commit {{[-a|--all]}} {{[-m|--message]}} "{{message}}"` - Commit staged files and sign them with the specified GPG key (or the one defined in the configuration file if no argument is specified): -`git commit --gpg-sign {{key_id}} --message "{{message}}"` +`git commit {{[-S|--gpg-sign]}} {{key_id}} {{[-m|--message]}} "{{message}}"` - Update the last commit by adding the currently staged changes, changing the commit's hash: @@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git - Create a commit, even if there are no staged files: -`git commit --message "{{message}}" --allow-empty` +`git commit {{[-m|--message]}} "{{message}}" --allow-empty` diff --git a/tldr/git-pull b/tldr/git-pull index 383a21ee..765b047b 100644 --- a/tldr/git-pull +++ b/tldr/git-pull @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Download changes from default remote repository and use fast-forward: -`git pull --rebase` +`git pull {{[-r|--rebase]}}` - Download changes from given remote repository and branch, then merge them into HEAD: diff --git a/tldr/git-switch b/tldr/git-switch index 6dd81b8d..09b92b70 100644 --- a/tldr/git-switch +++ b/tldr/git-switch @@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git - Create a new branch and switch to it: -`git switch --create {{branch_name}}` +`git switch {{[-c|--create]}} {{branch_name}}` - Create a new branch based on an existing commit and switch to it: -`git switch --create {{branch_name}} {{commit}}` +`git switch {{[-c|--create]}} {{branch_name}} {{commit}}` - Switch to the previous branch: @@ -31,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git - Switch to a branch and automatically merge the current branch and any uncommitted changes into it: -`git switch --merge {{branch_name}}` +`git switch {{[-m|--merge]}} {{branch_name}}` diff --git a/tldr/grep b/tldr/grep index f50336e8..8298cbdb 100644 --- a/tldr/grep +++ b/tldr/grep @@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git - Search for an exact string (disables regular expressions): -`grep {{-F|--fixed-strings}} "{{exact_string}}" {{path/to/file}}` +`grep {{[-F|--fixed-strings]}} "{{exact_string}}" {{path/to/file}}` - Search for a pattern in all files recursively in a directory, showing line numbers of matches, ignoring binary files: -`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}` +`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}` - Use extended regular expressions (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode: -`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{search_pattern}}" {{path/to/file}}` +`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}` - Print 3 lines of context around, before, or after each match: @@ -30,12 +30,12 @@ source: https://github.com/tldr-pages/tldr.git - Print file name and line number for each match with color output: -`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{search_pattern}}" {{path/to/file}}` +`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{search_pattern}}" {{path/to/file}}` - Search for lines matching a pattern, printing only the matched text: -`grep {{-o|--only-matching}} "{{search_pattern}}" {{path/to/file}}` +`grep {{[-o|--only-matching]}} "{{search_pattern}}" {{path/to/file}}` - Search `stdin` for lines that do not match a pattern: -`cat {{path/to/file}} | grep {{-v|--invert-match}} "{{search_pattern}}"` +`cat {{path/to/file}} | grep {{[-v|--invert-match]}} "{{search_pattern}}"` diff --git a/tldr/gzip b/tldr/gzip index 363de384..59055436 100644 --- a/tldr/gzip +++ b/tldr/gzip @@ -14,24 +14,24 @@ source: https://github.com/tldr-pages/tldr.git - Decompress a file, replacing it with the original uncompressed version: -`gzip {{-d|--decompress}} {{path/to/file.gz}}` +`gzip {{[-d|--decompress]}} {{path/to/file.gz}}` - Compress a file, keeping the original file: -`gzip {{-k|--keep}} {{path/to/file}}` +`gzip {{[-k|--keep]}} {{path/to/file}}` - Compress a file, specifying the output filename: -`gzip {{-c|--stdout}} {{path/to/file}} > {{path/to/compressed_file.gz}}` +`gzip {{[-c|--stdout]}} {{path/to/file}} > {{path/to/compressed_file.gz}}` - Decompress a `gzip` archive specifying the output filename: -`gzip {{-c|--stdout}} {{-d|--decompress}} {{path/to/file.gz}} > {{path/to/uncompressed_file}}` +`gzip {{[-c|--stdout]}} {{[-d|--decompress]}} {{path/to/file.gz}} > {{path/to/uncompressed_file}}` - Specify the compression level. 1 is the fastest (low compression), 9 is the slowest (high compression), 6 is the default: -`gzip -{{1..9}} {{-c|--stdout}} {{path/to/file}} > {{path/to/compressed_file.gz}}` +`gzip -{{1..9}} {{[-c|--stdout]}} {{path/to/file}} > {{path/to/compressed_file.gz}}` - Display the name and reduction percentage for each file compressed or decompressed: -`gzip {{-v|--verbose}} {{-d|--decompress}} {{path/to/file.gz}}` +`gzip {{[-v|--verbose]}} {{[-d|--decompress]}} {{path/to/file.gz}}` diff --git a/tldr/http b/tldr/http index 27cbfe0e..347a43af 100644 --- a/tldr/http +++ b/tldr/http @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Follow any `3xx` redirects and specify additional headers in a request: -`http {{-F|--follow}} {{https://example.com}} {{'User-Agent: Mozilla/5.0' 'Accept-Encoding: gzip'}}` +`http {{[-F|--follow]}} {{https://example.com}} {{'User-Agent: Mozilla/5.0' 'Accept-Encoding: gzip'}}` - Authenticate to a server using different authentication methods: diff --git a/tldr/img2sixel b/tldr/img2sixel index bab8152d..d1a1918f 100644 --- a/tldr/img2sixel +++ b/tldr/img2sixel @@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git - Resize the image to the specified width and height before displaying it: -`img2sixel {{-w|--width}} {{number}} {{-h|--height}} {{number}} {{path/to/image}}` +`img2sixel {{[-w|--width]}} {{number}} {{[-h|--height]}} {{number}} {{path/to/image}}` diff --git a/tldr/linux/agetty b/tldr/linux/agetty index 4429bd73..70e43949 100644 --- a/tldr/linux/agetty +++ b/tldr/linux/agetty @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git - Assume `stdin` is already connected to a `tty` and set a timeout for the login: -`agetty {{-t|--timeout}} {{timeout_in_seconds}} -` +`agetty {{[-t|--timeout]}} {{timeout_in_seconds}} -` - Assume the `tty` is [8]-bit, overriding the `TERM` environment variable set by `init`: @@ -24,12 +24,12 @@ source: https://github.com/tldr-pages/tldr.git - Skip the login (no login) and invoke, as root, another login program instead of `/bin/login`: -`agetty {{-n|--skip-login}} {{-l|--login-program}} {{login_program}} {{tty}}` +`agetty {{[-n|--skip-login]}} {{[-l|--login-program]}} {{login_program}} {{tty}}` - Do not display the pre-login (issue) file (`/etc/issue` by default) before writing the login prompt: -`agetty {{-i|--noissue}} -` +`agetty {{[-i|--noissue]}} -` - Change the root directory and write a specific fake host into the `utmp` file: -`agetty {{-r|--chroot}} {{/path/to/root_directory}} {{-H|--host}} {{fake_host}} -` +`agetty {{[-r|--chroot]}} {{/path/to/root_directory}} {{[-H|--host]}} {{fake_host}} -` diff --git a/tldr/linux/blkpr b/tldr/linux/blkpr index 103f5fc8..87e0f48f 100644 --- a/tldr/linux/blkpr +++ b/tldr/linux/blkpr @@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git - Register (command) a new reservation with a given key on a given device: -`blkpr {{-c|--command}} register {{-k|--key}} {{reservation_key}} {{path/to/device}}` +`blkpr {{[-c|--command]}} register {{[-k|--key]}} {{reservation_key}} {{path/to/device}}` - Set the type of an existing reservation to exclusive access: -`blkpr -c reserve {{-k|--key}} {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}` +`blkpr -c reserve {{[-k|--key]}} {{reservation_key}} {{[-t|--type]}} exclusive-access {{path/to/device}}` - Preempt the existing reservation with a given key and replace it with a new reservation: -`blkpr -c preempt {{-K|--oldkey}} {{old_key}} {{-k|--key}} {{new_key}} {{-t|--type}} write-exclusive {{path/to/device}}` +`blkpr -c preempt {{[-K|--oldkey]}} {{old_key}} {{[-k|--key]}} {{new_key}} {{[-t|--type]}} write-exclusive {{path/to/device}}` - Release a reservation with a given key and type on a given device: -`blkpr -c release {{-k|--key}} {{reservation_key}} {{-t|--type}} {{reservation_type}} {{path/to/device}}` +`blkpr -c release {{[-k|--key]}} {{reservation_key}} {{[-t|--type]}} {{reservation_type}} {{path/to/device}}` - Clear all reservations from a given device: -`blkpr -c clear {{-k|--key}} {{key}} {{path/to/device}}` +`blkpr -c clear {{[-k|--key]}} {{key}} {{path/to/device}}` diff --git a/tldr/linux/dos2unix b/tldr/linux/dos2unix index 7d5bd4f0..f045fb07 100644 --- a/tldr/linux/dos2unix +++ b/tldr/linux/dos2unix @@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git - Create a copy with Unix-style line endings: -`dos2unix {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}` +`dos2unix {{[-n|--newfile]}} {{path/to/file}} {{path/to/new_file}}` - Display file information: -`dos2unix {{-i|--info}} {{path/to/file}}` +`dos2unix {{[-i|--info]}} {{path/to/file}}` - Keep/add/remove Byte Order Mark: diff --git a/tldr/linux/efibootmgr b/tldr/linux/efibootmgr index 2a51f1fe..016edfc8 100644 --- a/tldr/linux/efibootmgr +++ b/tldr/linux/efibootmgr @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - List all boot options with their numbers: -`efibootmgr {{-u|--unicode}}` +`efibootmgr {{[-u|--unicode]}}` - Add UEFI Shell v2 as a boot option: @@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git - Change the current boot order: -`sudo efibootmgr {{-o|--bootorder}} {{0002,0008,0001,0005}}` +`sudo efibootmgr {{[-o|--bootorder]}} {{0002,0008,0001,0005}}` - Delete a boot option: -`sudo efibootmgr {{-b|--bootnum}} {{0008}} {{-B|--delete-bootnum}}` +`sudo efibootmgr {{[-b|--bootnum]}} {{0008}} {{[-B|--delete-bootnum]}}` diff --git a/tldr/linux/emerge b/tldr/linux/emerge index 44625bce..ff40ab2f 100644 --- a/tldr/linux/emerge +++ b/tldr/linux/emerge @@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Update all packages, including dependencies: -`sudo emerge {{-avuDN|--ask --verbose --update --deep --newuse}} @world` +`sudo emerge {{[-avuDN|--ask --verbose --update --deep --newuse]}} @world` - Resume a failed updated, skipping the failing package: @@ -23,16 +23,16 @@ source: https://github.com/tldr-pages/tldr.git - Install a new package, with confirmation: -`sudo emerge {{-av|--ask --verbose}} {{package}}` +`sudo emerge {{[-av|--ask --verbose]}} {{package}}` - Remove a package and its dependencies with confirmation: -`sudo emerge {{-avc|--ask --verbose --depclean}} {{package}}` +`sudo emerge {{[-avc|--ask --verbose --depclean]}} {{package}}` - Remove orphaned packages (installed as dependencies but no longer required by any package): -`sudo emerge {{-avc|--ask --verbose --depclean}}` +`sudo emerge {{[-avc|--ask --verbose --depclean]}}` - Search the package database for a keyword: -`emerge {{-S|--searchdesc}} {{keyword}}` +`emerge {{[-S|--searchdesc]}} {{keyword}}` diff --git a/tldr/linux/fatrace b/tldr/linux/fatrace index e9835438..acdc3318 100644 --- a/tldr/linux/fatrace +++ b/tldr/linux/fatrace @@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git - Print file access events on the mount of the current directory, with timestamps, to `stdout`: -`sudo fatrace {{-c|--current-mount}} {{-t|--timestamp}}` +`sudo fatrace {{[-c|--current-mount]}} {{[-t|--timestamp]}}` diff --git a/tldr/linux/fuzzel b/tldr/linux/fuzzel index 4c2fa6c3..2242b64a 100644 --- a/tldr/linux/fuzzel +++ b/tldr/linux/fuzzel @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Run `fuzzel` in dmenu mode: -`fuzzel {{-d|--dmenu}}` +`fuzzel {{[-d|--dmenu]}}` - Display a menu of the output of the `ls` command: diff --git a/tldr/linux/gcrane-completion b/tldr/linux/gcrane-completion index d630c851..301f002f 100644 --- a/tldr/linux/gcrane-completion +++ b/tldr/linux/gcrane-completion @@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`gcrane completion {{shell_name}} {{-h|--help}}` +`gcrane completion {{shell_name}} {{[-h|--help]}}` diff --git a/tldr/linux/getsebool b/tldr/linux/getsebool index 3a13d588..964c2470 100644 --- a/tldr/linux/getsebool +++ b/tldr/linux/getsebool @@ -19,4 +19,4 @@ source: https://github.com/tldr-pages/tldr.git - Show the current setting of all booleans with explanations: -`sudo semanage boolean {{-l|--list}}` +`sudo semanage boolean {{[-l|--list]}}` diff --git a/tldr/linux/grub2-mkpasswd-pbkdf2 b/tldr/linux/grub2-mkpasswd-pbkdf2 index 9bcb9825..fcdc9a61 100644 --- a/tldr/linux/grub2-mkpasswd-pbkdf2 +++ b/tldr/linux/grub2-mkpasswd-pbkdf2 @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Create a password hash for GRUB 2 using PBKDF2 and print it to `stdout`: -`sudo grub2-mkpasswd-pbkdf2 {{-c|--iteration-count}} {{number_of_pbkdf2_iterations}} {{-s|--salt}} {{salt_length}}` +`sudo grub2-mkpasswd-pbkdf2 {{[-c|--iteration-count]}} {{number_of_pbkdf2_iterations}} {{[-s|--salt]}} {{salt_length}}` diff --git a/tldr/linux/hyprpm b/tldr/linux/hyprpm index 91a43e85..2b1503ba 100644 --- a/tldr/linux/hyprpm +++ b/tldr/linux/hyprpm @@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git - Force an operation: -`hyprpm {{-f|--force}} {{operation}}` +`hyprpm {{[-f|--force]}} {{operation}}` - List all installed plugins: diff --git a/tldr/linux/ip-route-show b/tldr/linux/ip-route-show index dfc2deb2..d677f4ea 100644 --- a/tldr/linux/ip-route-show +++ b/tldr/linux/ip-route-show @@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git - Display the routing table: -`ip route show` +`ip {{[r|route]}} show` - Display the main routing table (same as first example): -`ip route show {{main|254}}` +`ip {{[r|route]}} show {{main|254}}` - Display the local routing table: -`ip route show table {{local|255}}` +`ip {{[r|route]}} show table {{local|255}}` - Display all routing tables: -`ip route show table {{all|unspec|0}}` +`ip {{[r|route]}} show table {{all|unspec|0}}` - List routes from a given device only: -`ip route show dev {{eth0}}` +`ip {{[r|route]}} show dev {{eth0}}` - List routes within a given scope: -`ip route show scope link` +`ip {{[r|route]}} show scope link` - Display the routing cache: -`ip route show cache` +`ip {{[r|route]}} show cache` - Display only IPv6 or IPv4 routes: -`ip {{-6|-4}} route show` +`ip {{-6|-4}} {{[r|route]}} show` diff --git a/tldr/linux/look b/tldr/linux/look index 5b7f1429..da02a9f2 100644 --- a/tldr/linux/look +++ b/tldr/linux/look @@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git - Case-insensitively search only on blank and alphanumeric characters: -`look {{-f|--ignore-case}} {{-d|--alphanum}} {{prefix}} {{path/to/file}}` +`look {{[-f|--ignore-case]}} {{[-d|--alphanum]}} {{prefix}} {{path/to/file}}` - Specify a string termination character (space by default): -`look {{-t|--terminate}} {{,}}` +`look {{[-t|--terminate]}} {{,}}` - Search in `/usr/share/dict/words` (`--ignore-case` and `--alphanum` are assumed): @@ -28,4 +28,4 @@ source: https://github.com/tldr-pages/tldr.git - Search in `/usr/share/dict/web2` (`--ignore-case` and `--alphanum` are assumed): -`look {{-a|--alternative}} {{prefix}}` +`look {{[-a|--alternative]}} {{prefix}}` diff --git a/tldr/linux/mac2unix b/tldr/linux/mac2unix index 57250f38..64152671 100644 --- a/tldr/linux/mac2unix +++ b/tldr/linux/mac2unix @@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git - Create a copy with Unix-style line endings: -`mac2unix {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}` +`mac2unix {{[-n|--newfile]}} {{path/to/file}} {{path/to/new_file}}` - Display file information: -`mac2unix {{-i|--info}} {{path/to/file}}` +`mac2unix {{[-i|--info]}} {{path/to/file}}` - Keep/add/remove Byte Order Mark: diff --git a/tldr/linux/protonvpn-connect b/tldr/linux/protonvpn-connect index a786dc2d..b0d08e11 100644 --- a/tldr/linux/protonvpn-connect +++ b/tldr/linux/protonvpn-connect @@ -10,23 +10,23 @@ source: https://github.com/tldr-pages/tldr.git - Connect to ProtonVPN interactively: -`protonvpn {{c|connect}}` +`protonvpn {{[c|connect]}}` - Connect to ProtonVPN using the fastest server available: -`protonvpn {{c|connect}} {{-f|--fastest}}` +`protonvpn {{[c|connect]}} {{[-f|--fastest]}}` - Connect to ProtonVPN using a specific server with a specific protocol: -`protonvpn {{c|connect}} {{server_name}} -p {{udp|tcp}}` +`protonvpn {{[c|connect]}} {{server_name}} -p {{udp|tcp}}` - Connect to ProtonVPN using a random server with a specific protocol: -`protonvpn {{c|connect}} {{-r|--random}} -p {{udp|tcp}}` +`protonvpn {{[c|connect]}} {{[-r|--random]}} -p {{udp|tcp}}` - Connect to ProtonVPN using the fastest Tor-supporting server: -`protonvpn {{c|connect}} --tor` +`protonvpn {{[c|connect]}} --tor` - Display help: diff --git a/tldr/linux/pw-dot b/tldr/linux/pw-dot index faff4f33..c9711305 100644 --- a/tldr/linux/pw-dot +++ b/tldr/linux/pw-dot @@ -15,27 +15,27 @@ source: https://github.com/tldr-pages/tldr.git - Read objects from `pw-dump` JSON file: -`pw-dot {{-j|--json}} {{path/to/file.json}}` +`pw-dot {{[-j|--json]}} {{path/to/file.json}}` - Specify an [o]utput file, showing all object types: -`pw-dot --output {{path/to/file.dot}} {{-a|--all}}` +`pw-dot --output {{path/to/file.dot}} {{[-a|--all]}}` - Print `.dot` graph to `stdout`, showing all object properties: -`pw-dot --output - {{-d|--detail}}` +`pw-dot --output - {{[-d|--detail]}}` - Generate a graph from a [r]emote instance, showing only linked objects: -`pw-dot --remote {{remote_name}} {{-s|--smart}}` +`pw-dot --remote {{remote_name}} {{[-s|--smart]}}` - Lay the graph from left to right, instead of dot's default top to bottom: -`pw-dot {{-L|--lr}}` +`pw-dot {{[-L|--lr]}}` - Lay the graph using 90-degree angles in edges: -`pw-dot {{-9|--90}}` +`pw-dot {{[-9|--90]}}` - Display help: diff --git a/tldr/linux/pw-metadata b/tldr/linux/pw-metadata index e91e5a5b..1a7043b8 100644 --- a/tldr/linux/pw-metadata +++ b/tldr/linux/pw-metadata @@ -15,19 +15,19 @@ source: https://github.com/tldr-pages/tldr.git - Show metadata with ID 0 in `settings`: -`pw-metadata {{-n|--name}} {{settings}} {{0}}` +`pw-metadata {{[-n|--name]}} {{settings}} {{0}}` - List all available metadata objects: -`pw-metadata {{-l|--list}}` +`pw-metadata {{[-l|--list]}}` - Keep running and log the changes to the metadata: -`pw-metadata {{-m|--monitor}}` +`pw-metadata {{[-m|--monitor]}}` - Delete all metadata: -`pw-metadata {{-d|--delete}}` +`pw-metadata {{[-d|--delete]}}` - Set `log.level` to 1 in `settings`: diff --git a/tldr/linux/run0 b/tldr/linux/run0 index 54e1d83d..f091531c 100644 --- a/tldr/linux/run0 +++ b/tldr/linux/run0 @@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git - Run a command as another user and/or group: -`run0 {{-u|--user}} {{username|uid}} {{-g|--group}} {{group_name|gid}} {{command}}` +`run0 {{[-u|--user]}} {{username|uid}} {{[-g|--group]}} {{group_name|gid}} {{command}}` diff --git a/tldr/linux/sbctl b/tldr/linux/sbctl index bc53211b..803ca587 100644 --- a/tldr/linux/sbctl +++ b/tldr/linux/sbctl @@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Sign an EFI binary with the created key and save the file to the database: -`sbctl sign {{-s|--save}} {{path/to/efi_binary}}` +`sbctl sign {{[-s|--save]}} {{path/to/efi_binary}}` - Re-sign all the saved files: diff --git a/tldr/linux/semanage b/tldr/linux/semanage index 0005f48b..01c65620 100644 --- a/tldr/linux/semanage +++ b/tldr/linux/semanage @@ -11,15 +11,15 @@ source: https://github.com/tldr-pages/tldr.git - Set or unset a SELinux boolean. Booleans allow the administrator to customize how policy rules affect confined process types (a.k.a domains): -`sudo semanage boolean {{-m|--modify}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}` +`sudo semanage boolean {{[-m|--modify]}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}` - Add a user-defined file context labeling rule. File contexts define what files confined domains are allowed to access: -`sudo semanage fcontext {{-a|--add}} {{-t|--type}} {{samba_share_t}} '/mnt/share(/.*)?'` +`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} '/mnt/share(/.*)?'` - Add a user-defined port labeling rule. Port labels define what ports confined domains are allowed to listen on: -`sudo semanage port {{-a|--add}} {{-t|--type}} {{ssh_port_t}} {{-p|--proto}} {{tcp}} {{22000}}` +`sudo semanage port {{[-a|--add]}} {{[-t|--type]}} {{ssh_port_t}} {{[-p|--proto]}} {{tcp}} {{22000}}` - Set or unset permissive mode for a confined domain. Per-domain permissive mode allows more granular control compared to `setenforce`: @@ -27,8 +27,8 @@ source: https://github.com/tldr-pages/tldr.git - Output local customizations in the default store: -`sudo semanage export {{-f|--output_file}} {{path/to/file}}` +`sudo semanage export {{[-f|--output_file]}} {{path/to/file}}` - Import a file generated by `semanage export` into local customizations (CAREFUL: may remove current customizations!): -`sudo semanage import {{-f|--input_file}} {{path/to/file}}` +`sudo semanage import {{[-f|--input_file]}} {{path/to/file}}` diff --git a/tldr/linux/semanage-boolean b/tldr/linux/semanage-boolean index eb153b0a..5b6b9637 100644 --- a/tldr/linux/semanage-boolean +++ b/tldr/linux/semanage-boolean @@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git - List all booleans settings: -`sudo semanage boolean {{-l|--list}}` +`sudo semanage boolean {{[-l|--list]}}` - List all user-defined boolean settings without headings: -`sudo semanage boolean {{-l|--list}} {{-C|--locallist}} {{-n|--noheading}}` +`sudo semanage boolean {{[-l|--list]}} {{[-C|--locallist]}} {{[-n|--noheading]}}` - Set or unset a boolean persistently: -`sudo semanage boolean {{-m|--modify}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}` +`sudo semanage boolean {{[-m|--modify]}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}` diff --git a/tldr/linux/semanage-permissive b/tldr/linux/semanage-permissive index 195b81b5..5aabf39e 100644 --- a/tldr/linux/semanage-permissive +++ b/tldr/linux/semanage-permissive @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git - List all process types (a.k.a domains) that are in permissive mode: -`sudo semanage permissive {{-l|--list}}` +`sudo semanage permissive {{[-l|--list]}}` - Set or unset permissive mode for a domain: diff --git a/tldr/linux/semanage-port b/tldr/linux/semanage-port index de68023c..a65079be 100644 --- a/tldr/linux/semanage-port +++ b/tldr/linux/semanage-port @@ -11,20 +11,20 @@ source: https://github.com/tldr-pages/tldr.git - List all port labeling rules: -`sudo semanage port {{-l|--list}}` +`sudo semanage port {{[-l|--list]}}` - List all user-defined port labeling rules without headings: -`sudo semanage port {{-l|--list}} {{-C|--locallist}} {{-n|--noheading}}` +`sudo semanage port {{[-l|--list]}} {{[-C|--locallist]}} {{[-n|--noheading]}}` - Add a user-defined rule that assigns a label to a protocol-port pair: -`sudo semanage port {{-a|--add}} {{-t|--type}} {{ssh_port_t}} {{-p|--proto}} {{tcp}} {{22000}}` +`sudo semanage port {{[-a|--add]}} {{[-t|--type]}} {{ssh_port_t}} {{[-p|--proto]}} {{tcp}} {{22000}}` - Add a user-defined rule that assigns a label to a protocol-port-range pair: -`sudo semanage port {{-a|--add}} {{-t|--type}} {{http_port_t}} {{-p|--proto}} {{tcp}} {{80-88}}` +`sudo semanage port {{[-a|--add]}} {{[-t|--type]}} {{http_port_t}} {{[-p|--proto]}} {{tcp}} {{80-88}}` - Delete a user-defined rule using its protocol-port pair: -`sudo semanage port {{-d|--delete}} {{-p|--proto}} {{udp}} {{11940}}` +`sudo semanage port {{[-d|--delete]}} {{[-p|--proto]}} {{udp}} {{11940}}` diff --git a/tldr/linux/setsebool b/tldr/linux/setsebool index 5986e6fd..01bb64e6 100644 --- a/tldr/linux/setsebool +++ b/tldr/linux/setsebool @@ -27,4 +27,4 @@ source: https://github.com/tldr-pages/tldr.git - Set or unset a boolean persistently (alternative method using `semanage-boolean`): -`sudo semanage boolean {{-m|--modify}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}` +`sudo semanage boolean {{[-m|--modify]}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}` diff --git a/tldr/linux/showkey b/tldr/linux/showkey index 077f7077..16c51108 100644 --- a/tldr/linux/showkey +++ b/tldr/linux/showkey @@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git - Display scancodes in hexadecimal: -`sudo showkey {{-s|--scancodes}}` +`sudo showkey {{[-s|--scancodes]}}` - Display keycodes in decimal (default): -`sudo showkey {{-k|--keycodes}}` +`sudo showkey {{[-k|--keycodes]}}` - Display keycodes in ASCII, decimal, and hexadecimal: -`sudo showkey {{-a|--ascii}}` +`sudo showkey {{[-a|--ascii]}}` - Exit the program: diff --git a/tldr/linux/size b/tldr/linux/size index 4a52a5f6..f3638b62 100644 --- a/tldr/linux/size +++ b/tldr/linux/size @@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git - Display the size of sections in a given object or executable file in [o]ctal: -`size {{-o|--radix=8}} {{path/to/file}}` +`size {{[-o|--radix=8]}} {{path/to/file}}` - Display the size of sections in a given object or executable file in [d]ecimal: -`size {{-d|--radix=10}} {{path/to/file}}` +`size {{[-d|--radix=10]}} {{path/to/file}}` - Display the size of sections in a given object or executable file in he[x]adecimal: -`size {{-x|--radix=16}} {{path/to/file}}` +`size {{[-x|--radix=16]}} {{path/to/file}}` diff --git a/tldr/linux/ss b/tldr/linux/ss index b0f73bf4..0aa9191e 100644 --- a/tldr/linux/ss +++ b/tldr/linux/ss @@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git - Show all TCP/UDP/RAW/UNIX sockets: -`ss -a {{-t|-u|-w|-x}}` +`ss {{[-a|--all]}} {{-t|-u|-w|-x}}` - Filter TCP sockets by states, only/exclude: -`ss {{state/exclude}} {{bucket/big/connected/synchronized/...}}` +`ss {{state|exclude}} {{bucket|big|connected|synchronized|...}}` - Show all TCP sockets connected to the local HTTPS port (443): -`ss -t src :{{443}}` +`ss {{[-t|--tcp]}} src :{{443}}` - Show all TCP sockets listening on the local 8080 port: -`ss -lt src :{{8080}}` +`ss {{[-lt|--listening --tcp]}} src :{{8080}}` - Show all TCP sockets along with processes connected to a remote SSH port: -`ss -pt dst :{{ssh}}` +`ss {{[-pt|--processes --tcp]}} dst :{{ssh}}` - Show all UDP sockets connected on specific source and destination ports: -`ss -u 'sport == :{{source_port}} and dport == :{{destination_port}}'` +`ss {{[-u|--udp]}} 'sport == :{{source_port}} and dport == :{{destination_port}}'` - Show all TCP IPv4 sockets locally connected on the subnet 192.168.0.0/16: -`ss -4t src {{192.168/16}}` +`ss {{[-4t|--ipv4 --tcp]}} src {{192.168/16}}` - Kill IPv4 or IPv6 Socket Connection with destination IP 192.168.1.17 and destination port 8080: -`ss --kill dst {{192.168.1.17}} dport = {{8080}}` +`ss {{[-K|--kill]}} dst {{192.168.1.17}} dport = {{8080}}` diff --git a/tldr/linux/tc b/tldr/linux/tc index d0c7ed12..0aa8396f 100644 --- a/tldr/linux/tc +++ b/tldr/linux/tc @@ -10,28 +10,28 @@ source: https://github.com/tldr-pages/tldr.git - Add constant network delay to outbound packages: -`tc qdisc add dev {{eth0}} root netem delay {{delay_in_milliseconds}}ms` +`sudo tc {{[q|qdisc]}} {{[a|add]}} dev {{eth0}} root netem delay {{delay_in_milliseconds}}ms` - Add normal distributed network delay to outbound packages: -`tc qdisc add dev {{eth0}} root netem delay {{mean_delay_ms}}ms {{delay_std_ms}}ms` +`sudo tc {{[q|qdisc]}} {{[a|add]}} dev {{eth0}} root netem delay {{mean_delay_ms}}ms {{delay_std_ms}}ms` - Add package corruption/loss/duplication to a portion of packages: -`tc qdisc add dev {{eth0}} root netem {{corruption|loss|duplication}} {{effect_percentage}}%` +`sudo tc {{[q|qdisc]}} {{[a|add]}} dev {{eth0}} root netem {{corruption|loss|duplication}} {{effect_percentage}}%` - Limit bandwidth, burst rate and max latency: -`tc qdisc add dev eth0 root tbf rate {{max_bandwidth_mb}}mbit burst {{max_burst_rate_kb}}kbit latency {{max_latency_before_drop_ms}}ms` +`sudo tc {{[q|qdisc]}} {{[a|add]}} dev eth0 root tbf rate {{max_bandwidth_mb}}mbit burst {{max_burst_rate_kb}}kbit latency {{max_latency_before_drop_ms}}ms` - Show active traffic control policies: -`tc qdisc show dev {{eth0}}` +`tc {{[q|qdisc]}} {{[s|show]}} dev {{eth0}}` - Delete all traffic control rules: -`tc qdisc del dev {{eth0}}` +`sudo tc {{[q|qdisc]}} {{[d|delete]}} dev {{eth0}}` - Change traffic control rule: -`tc qdisc change dev {{eth0}} root netem {{policy}} {{policy_parameters}}` +`sudo tc {{[q|qdisc]}} {{[c|change]}} dev {{eth0}} root netem {{policy}} {{policy_parameters}}` diff --git a/tldr/linux/tlp-stat b/tldr/linux/tlp-stat index e8670080..8e52124b 100644 --- a/tldr/linux/tlp-stat +++ b/tldr/linux/tlp-stat @@ -23,11 +23,11 @@ source: https://github.com/tldr-pages/tldr.git - Show configuration: -`sudo tlp-stat {{-c|--config}}` +`sudo tlp-stat {{[-c|--config]}}` - Monitor [p]ower supply `udev` [ev]ents: -`sudo tlp-stat {{-P|--pev}}` +`sudo tlp-stat {{[-P|--pev]}}` - Show [p]ower [sup]ply diagonistics: @@ -35,8 +35,8 @@ source: https://github.com/tldr-pages/tldr.git - Show [temp]eratures and fan speed: -`sudo tlp-stat {{-t|--temp}}` +`sudo tlp-stat {{[-t|--temp]}}` - Show general system information: -`sudo tlp-stat {{-s|--system}}` +`sudo tlp-stat {{[-s|--system]}}` diff --git a/tldr/linux/tune.exfat b/tldr/linux/tune.exfat index f226b68d..42bc5d4f 100644 --- a/tldr/linux/tune.exfat +++ b/tldr/linux/tune.exfat @@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git - Print the volume label of a filesystem: -`tune.exfat {{-l|--print-label}} {{/dev/sdXY}}` +`tune.exfat {{[-l|--print-label]}} {{/dev/sdXY}}` - Set the volume label of a filesystem: -`tune.exfat {{-L|--set-label}} {{new_label}} {{/dev/sdXY}}` +`tune.exfat {{[-L|--set-label]}} {{new_label}} {{/dev/sdXY}}` - Print the volume GUID of a filesystem: -`tune.exfat {{-u|--print-guid}} {{/dev/sdXY}}` +`tune.exfat {{[-u|--print-guid]}} {{/dev/sdXY}}` - Set the volume GUID of a filesystem: -`tune.exfat {{-U|--set-guid}} {{new_guid}} {{/dev/sdXY}}` +`tune.exfat {{[-U|--set-guid]}} {{new_guid}} {{/dev/sdXY}}` - Print the volume serial of a filesystem: -`tune.exfat {{-i|--print-serial}} {{/dev/sdXY}}` +`tune.exfat {{[-i|--print-serial]}} {{/dev/sdXY}}` - Set the volume serial of a filesystem: -`tune.exfat {{-I|--set-serial}} {{new_serial}} {{/dev/sdXY}}` +`tune.exfat {{[-I|--set-serial]}} {{new_serial}} {{/dev/sdXY}}` diff --git a/tldr/linux/unix2dos b/tldr/linux/unix2dos index c3751f95..8bb352f2 100644 --- a/tldr/linux/unix2dos +++ b/tldr/linux/unix2dos @@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git - Create a copy with DOS-style line endings: -`unix2dos {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}` +`unix2dos {{[-n|--newfile]}} {{path/to/file}} {{path/to/new_file}}` - Display file information: -`unix2dos {{-i|--info}} {{path/to/file}}` +`unix2dos {{[-i|--info]}} {{path/to/file}}` - Keep/add/remove Byte Order Mark: diff --git a/tldr/linux/unix2mac b/tldr/linux/unix2mac index 7cdbebaf..b24da1fa 100644 --- a/tldr/linux/unix2mac +++ b/tldr/linux/unix2mac @@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git - Create a copy with macOS-style line endings: -`unix2mac {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}` +`unix2mac {{[-n|--newfile]}} {{path/to/file}} {{path/to/new_file}}` - Display file information: -`unix2mac {{-i|--info}} {{path/to/file}}` +`unix2mac {{[-i|--info]}} {{path/to/file}}` - Keep/add/remove Byte Order Mark: diff --git a/tldr/linux/unopkg b/tldr/linux/unopkg index 2a6668f4..f14fd717 100644 --- a/tldr/linux/unopkg +++ b/tldr/linux/unopkg @@ -32,4 +32,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`unopkg {{-h|--help}}` +`unopkg {{[-h|--help]}}` diff --git a/tldr/linux/useradd b/tldr/linux/useradd index 6041f47f..3829e7cb 100644 --- a/tldr/linux/useradd +++ b/tldr/linux/useradd @@ -15,24 +15,24 @@ source: https://github.com/tldr-pages/tldr.git - Create a new user with the specified user ID: -`sudo useradd {{-u|--uid}} {{id}} {{username}}` +`sudo useradd {{[-u|--uid]}} {{id}} {{username}}` - Create a new user with the specified shell: -`sudo useradd {{-s|--shell}} {{path/to/shell}} {{username}}` +`sudo useradd {{[-s|--shell]}} {{path/to/shell}} {{username}}` - Create a new user belonging to additional groups (mind the lack of whitespace): -`sudo useradd {{-G|--groups}} {{group1,group2,...}} {{username}}` +`sudo useradd {{[-G|--groups]}} {{group1,group2,...}} {{username}}` - Create a new user with the default home directory: -`sudo useradd {{-m|--create-home}} {{username}}` +`sudo useradd {{[-m|--create-home]}} {{username}}` - Create a new user with the home directory filled by template directory files: -`sudo useradd {{-k|--skel}} {{path/to/template_directory}} {{-m|--create-home}} {{username}}` +`sudo useradd {{[-k|--skel]}} {{path/to/template_directory}} {{[-m|--create-home]}} {{username}}` - Create a new system user without the home directory: -`sudo useradd {{-r|--system}} {{username}}` +`sudo useradd {{[-r|--system]}} {{username}}` diff --git a/tldr/linux/userdel b/tldr/linux/userdel index 5031cf0f..ac25f3c4 100644 --- a/tldr/linux/userdel +++ b/tldr/linux/userdel @@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git - Remove a user in other root directory: -`sudo userdel {{-R|--root}} {{path/to/other/root}} {{username}}` +`sudo userdel {{[-R|--root]}} {{path/to/other/root}} {{username}}` - Remove a user along with the home directory and mail spool: -`sudo userdel {{-r|--remove}} {{username}}` +`sudo userdel {{[-r|--remove]}} {{username}}` diff --git a/tldr/linux/usermod b/tldr/linux/usermod index ade67b2f..7e38e067 100644 --- a/tldr/linux/usermod +++ b/tldr/linux/usermod @@ -11,20 +11,20 @@ source: https://github.com/tldr-pages/tldr.git - Change a username: -`sudo usermod {{-l|--login}} {{new_username}} {{username}}` +`sudo usermod {{[-l|--login]}} {{new_username}} {{username}}` - Change a user ID: -`sudo usermod {{-u|--uid}} {{id}} {{username}}` +`sudo usermod {{[-u|--uid]}} {{id}} {{username}}` - Change a user shell: -`sudo usermod {{-s|--shell}} {{path/to/shell}} {{username}}` +`sudo usermod {{[-s|--shell]}} {{path/to/shell}} {{username}}` - Add a user to supplementary groups (mind the lack of whitespace): -`sudo usermod {{-a|--append}} {{-G|--groups}} {{group1,group2,...}} {{username}}` +`sudo usermod {{[-a|--append]}} {{[-G|--groups]}} {{group1,group2,...}} {{username}}` - Change a user home directory: -`sudo usermod {{-m|--move-home}} {{-d|--home}} {{path/to/new_home}} {{username}}` +`sudo usermod {{[-m|--move-home]}} {{[-d|--home]}} {{path/to/new_home}} {{username}}` diff --git a/tldr/lsar b/tldr/lsar index d18c46f9..b7e7e0a3 100644 --- a/tldr/lsar +++ b/tldr/lsar @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Print al[L] available information about each file in the archive (it's very long): -`lsar {{-L|--verylong}} {{path/to/archive}}` +`lsar {{[-L|--verylong]}} {{path/to/archive}}` - Test the integrity of the files in the archive (if possible): diff --git a/tldr/mitmproxy b/tldr/mitmproxy index f949a112..6c01d144 100644 --- a/tldr/mitmproxy +++ b/tldr/mitmproxy @@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git - Start `mitmproxy` bound to a custom address and port: -`mitmproxy --listen-host {{ip_address}} {{-p|--listen-port}} {{port}}` +`mitmproxy --listen-host {{ip_address}} {{[-p|--listen-port]}} {{port}}` - Start `mitmproxy` using a script to process traffic: -`mitmproxy {{-s|--scripts}} {{path/to/script.py}}` +`mitmproxy {{[-s|--scripts]}} {{path/to/script.py}}` - Export the logs with SSL/TLS master keys to external programs (wireshark, etc.): @@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Specify mode of operation of the proxy server (`regular` is the default): -`mitmproxy {{-m|--mode}} {{regular|transparent|socks5|...}}` +`mitmproxy {{[-m|--mode]}} {{regular|transparent|socks5|...}}` - Set the console layout: diff --git a/tldr/nettacker b/tldr/nettacker index 53ca150d..ac94e0d7 100644 --- a/tldr/nettacker +++ b/tldr/nettacker @@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git - Run a port scan on targets: -`nettacker {{-m|--modules}} port_scan {{-i|--targets}} {{192.168.0.1/24,owasp.org,scanme.org,...}}` +`nettacker {{[-m|--modules]}} port_scan {{[-i|--targets]}} {{192.168.0.1/24,owasp.org,scanme.org,...}}` - Run a port scan on specific ports and targets listed in a file (newline separated): -`nettacker {{-m|--modules}} port_scan {{-g|--ports}} {{22,80,443,...}} {{-l|--targets-list}} {{path/to/targets.txt}}` +`nettacker {{[-m|--modules]}} port_scan {{[-g|--ports]}} {{22,80,443,...}} {{[-l|--targets-list]}} {{path/to/targets.txt}}` - Run ping test before scan and then run multiple scan types on target: -`nettacker --ping-before-scan {{-m|--modules}} {{port_scan,subdomain_scan,waf_scan,...}} {{-g|--ports}} {{80,443}} {{-i|--targets}} {{owasp.org}}` +`nettacker --ping-before-scan {{[-m|--modules]}} {{port_scan,subdomain_scan,waf_scan,...}} {{[-g|--ports]}} {{80,443}} {{[-i|--targets]}} {{owasp.org}}` diff --git a/tldr/npm-audit b/tldr/npm-audit index 7cdc195e..ac693a97 100644 --- a/tldr/npm-audit +++ b/tldr/npm-audit @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Force an automatic fix to dependencies with vulnerabilities: -`npm audit fix {{-f|--force}}` +`npm audit fix {{[-f|--force]}}` - Update the lock file without modifying the `node_modules` directory: diff --git a/tldr/npm-install b/tldr/npm-install index a642e9dc..78951f28 100644 --- a/tldr/npm-install +++ b/tldr/npm-install @@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git - Download the latest version of a package and install it globally: -`npm install {{-g|--global}} {{package_name}}` +`npm install {{[-g|--global]}} {{package_name}}` diff --git a/tldr/ntfyme b/tldr/ntfyme index ac01466d..fe159676 100644 --- a/tldr/ntfyme +++ b/tldr/ntfyme @@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git - Directly run your command: -`ntfyme exec {{-c|--cmd}} {{command}}` +`ntfyme exec {{[-c|--cmd]}} {{command}}` - Pipe your command and run: @@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git - Track and terminate the process after prolonged suspension: -`ntfyme exec {{-t|--track-process}} {{-c|--cmd}} {{command}}` +`ntfyme exec {{-t|--track-process}} {{[-c|--cmd]}} {{command}}` - Setup the tool configurations interactively: diff --git a/tldr/onefetch b/tldr/onefetch index bc7ebc83..2cf9afb6 100644 --- a/tldr/onefetch +++ b/tldr/onefetch @@ -34,8 +34,8 @@ source: https://github.com/tldr-pages/tldr.git - Ignore the specified files and directories: -`onefetch {{-e|--exclude}} {{path/to/file_or_directory|regular_expression}}` +`onefetch {{[-e|--exclude]}} {{path/to/file_or_directory|regular_expression}}` - Only detect languages from the specified categories (default: programming and markup): -`onefetch {{-T|--type}} {{programming|markup|prose|data}}` +`onefetch {{[-T|--type]}} {{programming|markup|prose|data}}` diff --git a/tldr/pandoc b/tldr/pandoc index 90b2c483..2d71c73d 100644 --- a/tldr/pandoc +++ b/tldr/pandoc @@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git - Convert file to PDF (the output format is determined by file extension): -`pandoc {{path/to/input.md}} {{-o|--output}} {{path/to/output.pdf}}` +`pandoc {{path/to/input.md}} {{[-o|--output]}} {{path/to/output.pdf}}` - Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.): -`pandoc {{path/to/input.md}} {{-s|--standalone}} {{-o|--output}} {{path/to/output.html}}` +`pandoc {{path/to/input.md}} {{[-s|--standalone]}} {{[-o|--output]}} {{path/to/output.html}}` - Manually specify format detection and conversion (overriding automatic format detection using filename extension or when filename extension is missing altogether): -`pandoc {{-f|-r|--from|--read}} {{docx|...}} {{path/to/input}} {{-t|-w|--to|--write}} {{pdf|...}} {{-o|--output}} {{path/to/output}}` +`pandoc {{-f|-r|--from|--read}} {{docx|...}} {{path/to/input}} {{-t|-w|--to|--write}} {{pdf|...}} {{[-o|--output]}} {{path/to/output}}` - List all supported input formats: diff --git a/tldr/pg_dumpall b/tldr/pg_dumpall index ce23ac5e..37b1d7db 100644 --- a/tldr/pg_dumpall +++ b/tldr/pg_dumpall @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Dump all databases using a specific username: -`pg_dumpall {{-U|--username}} {{username}} > {{path/to/file.sql}}` +`pg_dumpall {{[-U|--username]}} {{username}} > {{path/to/file.sql}}` - Same as above, customize host and port: @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Dump only database data into an SQL-script file: -`pg_dumpall {{-a|--data-only}} > {{path/to/file.sql}}` +`pg_dumpall {{[-a|--data-only]}} > {{path/to/file.sql}}` - Dump only schema (data definitions) into an SQL-script file: diff --git a/tldr/podman-compose b/tldr/podman-compose index a356ab72..ed7b4184 100644 --- a/tldr/podman-compose +++ b/tldr/podman-compose @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Start all containers using an alternate compose file: -`podman-compose {{-f|--file}} {{path/to/file.yaml}} up` +`podman-compose {{[-f|--file]}} {{path/to/file.yaml}} up` - Stop all running containers: diff --git a/tldr/pulumi b/tldr/pulumi index 5006f504..92c70b36 100644 --- a/tldr/pulumi +++ b/tldr/pulumi @@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git - Use Pulumi locally, independent of a Pulumi Cloud: -`pulumi login {{-l|--local}}` +`pulumi login {{[-l|--local]}}` diff --git a/tldr/pulumi-login b/tldr/pulumi-login index 51bf4f50..87304d22 100644 --- a/tldr/pulumi-login +++ b/tldr/pulumi-login @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Use Pulumi locally, independent of a Pulumi Cloud: -`pulumi login {{-l|--local}}` +`pulumi login {{[-l|--local]}}` diff --git a/tldr/pulumi-logout b/tldr/pulumi-logout index f5300b06..1d513bde 100644 --- a/tldr/pulumi-logout +++ b/tldr/pulumi-logout @@ -18,8 +18,8 @@ source: https://github.com/tldr-pages/tldr.git - Log out of using local mode: -`pulumi logout {{-l|--local}}` +`pulumi logout {{[-l|--local]}}` - Display help: -`pulumi logout {{-h|--help}}` +`pulumi logout {{[-h|--help]}}` diff --git a/tldr/pulumi-version b/tldr/pulumi-version index 15861108..34c32433 100644 --- a/tldr/pulumi-version +++ b/tldr/pulumi-version @@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`pulumi version {{-h|--help}}` +`pulumi version {{[-h|--help]}}` diff --git a/tldr/pulumi-whoami b/tldr/pulumi-whoami index 87e9c397..8cc44d12 100644 --- a/tldr/pulumi-whoami +++ b/tldr/pulumi-whoami @@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git - Print detailed information about the currently logged in user: -`pulumi whoami {{-v|--verbose}}` +`pulumi whoami {{[-v|--verbose]}}` - Print detailed information about the currently logged in user as JSON: -`pulumi whoami {{-j|--json}}` +`pulumi whoami {{[-j|--json]}}` - Display help: -`pulumi whoami {{-h|--help}}` +`pulumi whoami {{[-h|--help]}}` diff --git a/tldr/pydocstyle b/tldr/pydocstyle index 64c57ccf..2832f1ff 100644 --- a/tldr/pydocstyle +++ b/tldr/pydocstyle @@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git - Show an explanation of each error: -`pydocstyle {{-e|--explain}} {{file.py|path/to/directory}}` +`pydocstyle {{[-e|--explain]}} {{file.py|path/to/directory}}` - Show debug information: -`pydocstyle {{-d|--debug}} {{file.py|path/to/directory}}` +`pydocstyle {{[-d|--debug]}} {{file.py|path/to/directory}}` - Display the total number of errors: diff --git a/tldr/toipe b/tldr/toipe index cb0fefb2..dd1f4a36 100644 --- a/tldr/toipe +++ b/tldr/toipe @@ -15,16 +15,16 @@ source: https://github.com/tldr-pages/tldr.git - Use a specific wordlist: -`toipe {{-w|--wordlist}} {{wordlist_name}}` +`toipe {{[-w|--wordlist]}} {{wordlist_name}}` - Use a custom wordlist: -`toipe {{-f|--file}} {{path/to/file}}` +`toipe {{[-f|--file]}} {{path/to/file}}` - Specify the number of words on each test: -`toipe {{-n|--num}} {{number_of_words}}` +`toipe {{[-n|--num]}} {{number_of_words}}` - Include punctuation: -`toipe {{-p|--punctuation}}` +`toipe {{[-p|--punctuation]}}` diff --git a/tldr/typeinc b/tldr/typeinc index caa3ef6c..9113d96d 100644 --- a/tldr/typeinc +++ b/tldr/typeinc @@ -15,12 +15,12 @@ source: https://github.com/tldr-pages/tldr.git - Display the top 10 rank list for input difficulty level: -`typeinc {{-r|--ranklist}} {{difficulty_level}}` +`typeinc {{[-r|--ranklist]}} {{difficulty_level}}` - Get random English words present in our wordlist: -`typeinc {{-w|--words}} {{word_count}}` +`typeinc {{[-w|--words]}} {{word_count}}` - Calculate hypothetical Typeinc score: -`typeinc {{-s|--score}}` +`typeinc {{[-s|--score]}}` diff --git a/tldr/uv-tree b/tldr/uv-tree index 0024ad62..b40f118c 100644 --- a/tldr/uv-tree +++ b/tldr/uv-tree @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Show dependency tree up to a certain depth: -`uv tree {{-d|--depth}} {{n}}` +`uv tree {{[-d|--depth]}} {{n}}` - Show the latest available version for all outdated packages: diff --git a/tldr/waybar b/tldr/waybar index fee9246c..94949c7a 100644 --- a/tldr/waybar +++ b/tldr/waybar @@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git - Use a different configuration file: -`waybar {{-c|--config}} {{path/to/config.jsonc}}` +`waybar {{[-c|--config]}} {{path/to/config.jsonc}}` - Use a different stylesheet file: -`waybar {{-s|--style}} {{path/to/stylesheet.css}}` +`waybar {{[-s|--style]}} {{path/to/stylesheet.css}}` - Set the logging level: -`waybar {{-l|--log-level}} {{trace|debug|info|warning|error|critical|off}}` +`waybar {{[-l|--log-level]}} {{trace|debug|info|warning|error|critical|off}}` diff --git a/tldr/zapier-analytics b/tldr/zapier-analytics index 5fcc5b96..26edc7c9 100644 --- a/tldr/zapier-analytics +++ b/tldr/zapier-analytics @@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git - Change how much information is collected: -`zapier analytics {{-m|--mode}} {{enabled|anonymous|disabled}}` +`zapier analytics {{[-m|--mode]}} {{enabled|anonymous|disabled}}` - Show extra debugging output: -`zapier analytics {{-m|--mode}} {{enabled|anonymous|disabled}} {{-d|--debug}}` +`zapier analytics {{[-m|--mode]}} {{enabled|anonymous|disabled}} {{-d|--debug}}` diff --git a/tldr/zapier-build b/tldr/zapier-build index b136cc6a..39e8847e 100644 --- a/tldr/zapier-build +++ b/tldr/zapier-build @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Show extra debugging output: -`zapier build {{-d|--debug}}` +`zapier build {{[-d|--debug]}}` diff --git a/tldr/zapier-convert b/tldr/zapier-convert index 74a0ec86..f4d9064e 100644 --- a/tldr/zapier-convert +++ b/tldr/zapier-convert @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Convert a visual builder integration with a specific version: -`zapier convert {{integration_id}} {{path/to/directory}} {{-v|--version}}={{version}}` +`zapier convert {{integration_id}} {{path/to/directory}} {{[-v|--version]}}={{version}}` - Show extra debugging output: diff --git a/tldr/zapier-init b/tldr/zapier-init index d07d1e96..b01b841e 100644 --- a/tldr/zapier-init +++ b/tldr/zapier-init @@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git - Initialize a new Zapier integration with a specific template: -`zapier init {{path/to/directory}} {{-t|--template}} {{basic-auth|callback|custom-auth|digest-auth|dynamic-dropdown|files|minimal|oauth1-trello|oauth2|search-or-create|session-auth|typescript}}` +`zapier init {{path/to/directory}} {{[-t|--template]}} {{basic-auth|callback|custom-auth|digest-auth|dynamic-dropdown|files|minimal|oauth1-trello|oauth2|search-or-create|session-auth|typescript}}` - Show extra debugging output: -`zapier init {{-d|--debug}}` +`zapier init {{[-d|--debug]}}` diff --git a/tldr/zapier-push b/tldr/zapier-push index d2b5297b..6e35c1cb 100644 --- a/tldr/zapier-push +++ b/tldr/zapier-push @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Show extra debugging output: -`zapier push {{-d|--debug}}` +`zapier push {{[-d|--debug]}}` diff --git a/tldr/zapier-scaffold b/tldr/zapier-scaffold index b7981a5c..778fbf51 100644 --- a/tldr/zapier-scaffold +++ b/tldr/zapier-scaffold @@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git - Specify a custom destination directory for the scaffolded files: -`zapier scaffold {{trigger|search|create|resource}} {{noun}} {{-d|--dest}}={{path/to/directory}}` +`zapier scaffold {{trigger|search|create|resource}} {{noun}} {{[-d|--dest]}}={{path/to/directory}}` - Overwrite existing files when scaffolding: -`zapier scaffold {{trigger|search|create|resource}} {{noun}} {{-f|--force}}` +`zapier scaffold {{trigger|search|create|resource}} {{noun}} {{[-f|--force]}}` - Exclude comments from the scaffolded files: @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Show extra debugging output: -`zapier scaffold {{-d|--debug}}` +`zapier scaffold {{[-d|--debug]}}`