tldr-pages/tldr

Add mnemonics to commands that only have short options available

Open

#16,218 opened on Apr 21, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Shell (2,507 forks)batch import
help wanted

Repository metrics

Stars
 (30,937 stars)
PR merge metrics
 (Avg merge 7d 5h) (321 merged PRs in 30d)

Description

There are quite a lot of commands that do not provide long options and are thus a black box to new users. Mnemonics should help with that. A trick to finding pages that contain a short option is grep -r " -[a-zA-Z][^a-zA-Z]" This does not however find pages that have two short options groupled together like -ab

Mnemonics style guide: https://github.com/tldr-pages/tldr/blob/main/contributing-guides/style-guide.md#short-option-mnemonics

Also: If you manage to find a case where the short option isn't derived from the long option, for example {{[-n|--dry-run]}}, add a mnemonic for that.

Contributor guide