Skip to content

auto-generate formulaic parts of the manpage using argparse-manpage #1223

Description

@mulkieran

All this redundant hand editing ought to be able to be dispensed with. Alternatively, one could use the help2man tool, which works by parsing the help text, which we can already generate all of.

PYTHONPATH=./src argparse-manpage --module stratis_cli._parser._parser --object PARSER > docs/stratis.8 sort of works, but would be extended with other options, to include desirable extra stuff. I think it looks better than help2man output.

Some discussion of this here, very dated: python/cpython#58310.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions