阅读背景:

Sphinx和argparse - 自动记录命令行脚本?

来源:互联网 

I'm building a Python package, and using Sphinx to create the docs. Aside from my package code, I also include a lot of command line Python scripts, which use argparse. I was wondering if there is a way to get Sphinx to autodocument these scripts? The end goal would be a pretty-printed list of scripts, with the associated help print, arguments and options. And to be clear, I'm looking for a pre-existing way to do this, not a way to implement this myself. I'm building a Python package, and using Sphinx




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: