python - Sphinx and argparse - autodocumenting command line scripts? -
i'm building python package, , using sphinx create docs. aside package code, include lot of command line python scripts, use argparse. wondering if there way sphinx autodocument these scripts? end goal pretty-printed list of scripts, associated print, arguments , options. , clear, i'm looking pre-existing way this, not way implement myself.
this isn't specific of question ask on s.o., if there more appropriate s.e. site post question, please let me know. thanks.
you can use sphinxcontrib.programoutput include messages command line in documentation.
this not specific argparse can used document script printing messages command line.
Comments
Post a Comment