sphinx-doc / sphinx-doc/sphinx-argparse

Support for wrapping the usage declaration

Open
#37 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
38
Forks
33
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named in the issue. Start by locating the extension's usage-section rendering entry point and its existing tests, then trace how the usage declaration is formatted. Done means an optional width setting wraps long usage output at the requested character width without changing the default output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.