mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:37:35 +00:00
Manpages: Auto-generate many through ArgsParser
This set was hand-curated, guided by the questions: - Does it have at least three options, i.e. is the help page non-trivial? - Is the program unusual, i.e. does listing it in Help or on man.serenityos.org spread awareness? - Is the program common, but we only implement a subset of 'common' flags?
This commit is contained in:
parent
a4e805756d
commit
50a65f02a8
29 changed files with 726 additions and 0 deletions
31
Base/usr/share/man/man1/grep.md
Normal file
31
Base/usr/share/man/man1/grep.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
## Name
|
||||
|
||||
grep
|
||||
|
||||
## Synopsis
|
||||
|
||||
```sh
|
||||
$ grep [--recursive] [--extended-regexp] [--regexp Pattern] [-i] [--invert-match] [--quiet] [--no-messages] [--binary-mode ] [--text] [-I] [--color WHEN] [file...]
|
||||
```
|
||||
|
||||
## Options:
|
||||
|
||||
* `--help`: Display help message and exit
|
||||
* `--version`: Print version
|
||||
* `-r`, `--recursive`: Recursively scan files
|
||||
* `-E`, `--extended-regexp`: Extended regular expressions
|
||||
* `-e Pattern`, `--regexp Pattern`: Pattern
|
||||
* `-i`: Make matches case-insensitive
|
||||
* `-v`, `--invert-match`: Select non-matching lines
|
||||
* `-q`, `--quiet`: Do not write anything to standard output
|
||||
* `-s`, `--no-messages`: Suppress error messages for nonexistent or unreadable files
|
||||
* `--binary-mode`: Action to take for binary files ([binary], text, skip)
|
||||
* `-a`, `--text`: Treat binary files as text (same as --binary-mode text)
|
||||
* `-I`: Ignore binary files (same as --binary-mode skip)
|
||||
* `--color WHEN`: When to use colored output for the matching text ([auto], never, always)
|
||||
|
||||
## Arguments:
|
||||
|
||||
* `file`: File(s) to process
|
||||
|
||||
<!-- Auto-generated through ArgsParser -->
|
Loading…
Add table
Add a link
Reference in a new issue