1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 13:33:43 +02:00

exrex: add short options (#17347)

This commit is contained in:
Managor 2025-07-26 08:04:05 +03:00 committed by GitHub
parent 172c039a13
commit 18131e57bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,23 +10,23 @@
- Generate a random string that matches a `regex`:
`exrex --random '{{regex}}'`
`exrex {{[-r|--random]}} '{{regex}}'`
- Generate at most 100 strings that match a `regex`:
`exrex --max-number {{100}} '{{regex}}'`
`exrex {{[-m|--max-number]}} {{100}} '{{regex}}'`
- Generate all possible strings that match a `regex`, joined by a custom delimiter string:
`exrex --delimiter "{{, }}" '{{regex}}'`
`exrex {{[-d|--delimiter]}} "{{, }}" '{{regex}}'`
- Print count of all possible strings that match a `regex`:
`exrex --count '{{regex}}'`
`exrex {{[-c|--count]}} '{{regex}}'`
- Simplify a `regex`:
`exrex --simplify '{{ab|ac}}'`
`exrex {{[-s|--simplify]}} '{{ab|ac}}'`
- Print eyes: