ARGPARSE-MANPAGE(1)
π ARGPARSE-MANPAGE π
okay bestie, so this is argparse-manpage β that's the name, and honestly the name ate. it lives in the Generated Python Manual manual, section 1, and it's here to do one (1) iconic thing: turn your Python argparse.ArgumentParser object into a real, actual man page. no cap, that's the whole vibe. π
β¨ 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]
note the vibes of these parentheses, bestie: you must pick either --module or --pyfile, and you must pick either --function or --object. the rest is all optional glow-up. π
πΈ DESCRIPTION πΈ
Build manual page from Python's argparse.ArgumentParser object. that's it. that's the flex. you point it at your parser, it hands you a man page, and you go live your best life. π¦
π OPTIONS π
--module MODULEβ search the OBJECT/FUNCTION in MODULE. like, go look inside this importable module for the thing, bestie. π--pyfile PYFILEβ search the OBJECT/FUNCTION in FILE. same energy, but reading a file instead of importing a module. π--function FUNCTIONβ call FUNCTION from MODULE/FILE to obtain theArgumentParserobject. you're literally just invoking it and it hands you the parser. slay. β¨--object OBJECTβ obtainArgumentParserOBJECT from FUNCTION (to get argparse object) from MODULE or FILE. yes, the wording is a whole mood, but the point is: grab the parser object itself instead of calling a function. π--project-name PROJECT_NAMEβ Name of the project the documented program is part of. give your project its main character credit. π--prog PROGβ Substitutes%proginArgumentParser's usage. so your usage line actually says the real program name instead of looking awkward. π«Ά--version VERSIONβ Version of the program, will be visible in the manual page footer. put a number on it, it deserves it. β--description TEXTβ description of the program, used in the NAME section, after the leading'name - 'part, seeman (7)man-pages for more info. so the NAME section reads like name - your text here. π--author [AUTHOR]β Author of the program. Can be specified multiple times. collect them all like pokΓ©mon, bestie. π--url URLβ Link to project's homepage. drop the link, let people find the source. π--format {pretty,single-commands-section}β Format of the generated man page. Defaults to'pretty'. two aesthetics, pick your fighter. π¦--output OUTFILEβ Output file. Defaults to stdout. no file? it just spills the whole page straight into your terminal, which is honestly kind of a serve. π--manual-section MANUAL_SECTIONβ Section of the manual, by default1. Seeman (7)man-pages for more info about existing sections. it's the number in the parentheses up top, iykyk. π₯--manual-title MANUAL_TITLEβ The title of the manual, by default"Generated Python Manual". Seeman (7)man-pages for more instructions. this is the big ALL-CAPS words in the header, so make it good. π--include FILEβ File that contains extra material for the man page. add your own lore, bestie. πΈ--manfile FILEβ File containing a complete man page. full custom job, you bring the entire page, it's giving DIY. π§
π AUTHOR π
Gabriele Giammatteo <gabriele.giammatteo@eng.it> β yeah, the actual legend who made this. absolute icon behavior. π
π¦ DISTRIBUTION π¦
The latest version of argparse-manpage may be downloaded from https://github.com/praiskup/argparse-manpage β go grab it, star it, tell your friends. π«Ά
ngl bestie, that's the whole page. every flag, every default, nothing skipped. π
mwah π β this was argparse-manpage version 4.7, dated 2025-08-15, signing off with the biggest kiss to you and to the ARGPARSE-MANPAGE(1) header up top. go generate something iconic. π
π¦ where this page comes from
- epel 10: argparse-manpage 4.7-1.el10_1 Β· Apache-2.0
- epel 9: argparse-manpage 4.7-1.el9 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms