1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:27: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:
Ben Wiederhake 2021-10-26 22:12:12 +02:00 committed by Linus Groh
parent a4e805756d
commit 50a65f02a8
29 changed files with 726 additions and 0 deletions

View file

@ -0,0 +1,22 @@
## Name
truncate
## Synopsis
```sh
$ truncate [--size size] [--reference file] <file>
```
## Options:
* `--help`: Display help message and exit
* `--version`: Print version
* `-s size`, `--size size`: Resize the target file to (or by) this size. Prefix with + or - to expand or shrink the file, or a bare number to set the size exactly
* `-r file`, `--reference file`: Resize the target file to match the size of this one
## Arguments:
* `file`: File path
<!-- Auto-generated through ArgsParser -->