mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-05 20:40:02 -08:00
Instead of using a static one, generate it via clap_mangen. To generate the manpage run `rosenpass --generate-manpage <folder>`. Right now clap does not support flattening of generated manpages, meaning that each subcommand is explained in its own file. To add extra sections to the main file `rosenpass.1`, it's rewritten after the initial creation. Once clap support flattened Man pages, the `generate_to` call can be removed and all subcommand are added to the `rosenpass.1` file. This implementation allows downstream manpage generation to stay unchanged even after switching from multiple manpages to a flattened one. Signed-off-by: Paul Spooren <mail@aparcar.org>