logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

argparse-manpage

Author

       Gabriele Giammatteo <gabriele.giammatteo@eng.it>

Description

       Build manual page from Python's argparse.ArgumentParser object.

Distribution

       The      latest      version      of      argparse-manpage       may       be       downloaded       from
       https://github.com/praiskup/argparse-manpage

argparse-manpage 4.5                               2024-02-15                                ARGPARSE-MANPAGE(1)

Name

       argparse-manpage

Options

--moduleMODULE
              search the OBJECT/FUNCTION in MODULE

       --pyfilePYFILE
              search the OBJECT/FUNCTION in FILE

       --functionFUNCTION
              call FUNCTION from MODULE/FILE to obtain ArgumentParser object

       --objectOBJECT
              obtain ArgumentParser OBJECT from FUNCTION (to get argparse object) from MODULE or FILE

       --project-namePROJECT_NAME
              Name of the project the documented program is part of.

       --progPROG
              Substitutes %prog in ArgumentParser's usage.

       --versionVERSION
              Version of the program, will be visible in the manual page footer.

       --descriptionTEXT
              description of the program, used in the NAME section, after the leading 'name - '  part,  see  man
              (7) man-pages for more info

       --author[AUTHOR]
              Author of the program. Can be specified multiple times.

       --urlURL
              Link to project's homepage

       --format{pretty,single-commands-section}
              Format of the generated man page. Defaults to 'pretty'.

       --outputOUTFILE
              Output file. Defaults to stdout.

       --manual-sectionMANUAL_SECTION
              Section of the manual, by default 1. See man (7) man-pages for more info about existing sections.

       --manual-titleMANUAL_TITLE
              The  title  of  the  manual,  by default "Generated Python Manual". See man (7) man-pages for more
              instructions.

       --includeFILE
              File that contains extra material for the man page.

       --manfileFILE
              File containing a complete man page.

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]

See Also