Expand description
For parsing command information from man pages
Modules§
Structs§
- CmdPre
Info - Information about a command and its detected subcommands before being parsed
Functions§
- detect_
subcommands - Make a tree relating commands to their subcommands
- get_
cmd_ name - Get the command that a manpage is for, given its path
- parse_
from - Take a
CmdPreInforepresenting the path to a command and its subcommands and try parsing that command and its subcommands. Also returns a list of errors encountered along the way. - parse_
manpage_ text - Parse flags from a man page, trying all of the different parsers and merging their results if multiple parsers could parse the man page.
- read_
manpage - Decompress a manpage if necessary