sphinx-doc / sphinx-argparse

A Sphinx extension to automatically document argparse commands and options
https://sphinx-argparse.readthedocs.org/
MIT License
26 stars 24 forks source link

Support for wrapping the usage declaration #37

Open stefmolin opened 1 year ago

stefmolin commented 1 year ago

I am trying to use this with a CLI that has a lot of configuration options, so when I render the usage section it requires a lot of horizontal scrolling:

Screenshot 2023-04-26 at 10 15 54 PM

I hacked something to wrap my output, but I was wondering if this could be incorporated into the library as an option (maybe something like :width: 80 for 80 character width):

Screenshot 2023-04-26 at 10 14 58 PM

I'm happy to help if this is of interest and some pointers as to where to start could be provided.