ARGPARSE-MANPAGE(1)
π¦ ARGPARSE-MANPAGE(1) β the argparse-manpage glow-up β¨
okay so bestie, welcome to argparse-manpage, section 1 of the Generated Python Manual. this is the page that literally builds man pages out of Python's argparse.ArgumentParser object, no cap. it's giving "I write my docs once and the man page just appears" energy π
πΈ SYNOPSIS πΈ
argparse-manpage [-h] (--module MODULE | --pyfile PYFILE) (--function
FUNCTION | --object OBJECT) [--project-name PROJECT_NAME] [--prog PROG]
[--version VERSION] [--description TEXT] [--author [AUTHOR]] [--url URL]
[--format {pretty,single-commands-section}] [--output OUTFILE]
[--manual-section MANUAL_SECTION] [--manual-title MANUAL_TITLE]
[--include FILE] [--manfile FILE]
like, yes, that's a lot of brackets. it's fine. those are choices she's giving you π
π DESCRIPTION π
Build a manual page from Python's argparse.ArgumentParser object. that's it, that's the whole vibe. your parser already knows all the flags β she just needs a little help getting dressed for the man page format π
β¨
π OPTIONS π
--module MODULEβ search for theOBJECT/FUNCTIONinsideMODULE. π--pyfile PYFILEβ search for theOBJECT/FUNCTIONinsideFILEinstead. same energy, different door. πͺ--function FUNCTIONβ callFUNCTIONfromMODULE/FILEto obtain theArgumentParserobject. she does the work, you get the parser π«Ά--object OBJECTβ obtain theArgumentParserOBJECTfromFUNCTION(yes, to get the argparse object) fromMODULEorFILE. iykyk π₯--project-name PROJECT_NAMEβ the name of the project that the documented program is part of. give her some family, she deserves it π--prog PROGβ substitutes%proginArgumentParser's usage. iconic substitution moment β¨--version VERSIONβ the version of the program β this one will be visible in the manual page footer. main character placement fr π--description TEXTβ a description of the program, used in the NAME section, right after the leading'name - 'part. check outman (7)man-pages for more info π--author [AUTHOR]β author of the program. can be specified multiple times β collect them like stickers π--url URLβ a link to the project's homepage. link her up π--format {pretty,single-commands-section}β the format of the generated man page. defaults to'pretty'. two options, both slay, pick your fighter π--output OUTFILEβ the output file. defaults tostdout. no file? she'll just scream it into your terminal, respectfully π--manual-section MANUAL_SECTIONβ the section of the manual,1by default. peepman (7)man-pages for more info about which sections exist π--manual-title MANUAL_TITLEβ the title of the manual,"Generated Python Manual"by default. seeman (7)man-pages for more instructions π·οΈ--include FILEβ a file that contains extra material for the man page. bonus content, we love her π--manfile FILEβ a file containing a complete man page. the whole thing, ready to go π
π§ AUTHOR π§
Gabriele Giammatteo <gabriele.giammatteo@eng.it> β the icon, the legend, the reason this page exists π
π DISTRIBUTION π
the latest version of argparse-manpage may be downloaded from https://github.com/praiskup/argparse-manpage β go get her, she's fresh π¦
ok bestie real talk for a sec:--outputdefaults tostdout, so if you forget to give her a file she'll just dump the whole page right there in your terminal. not a bug, just β¨a choiceβ¨ you made π
and that's the tea, bestie π this was argparse-manpage version 4.6, dated 2025-04-01 β go forth and generate man pages that are, honestly, prettier than mine πβ¨πΈπ«Ά
π¦ where this page comes from
- opensuse-leap 16.0: python313-argparse-manpage 4.6-160000.2.2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms