tag:github.com,2008:https://github.com/tox-dev/sphinx-argparse-cli/releasesTags from sphinx-argparse-cli2024-12-10T01:42:45Ztag:github.com,2008:Repository/336118160/1.19.02024-12-10T01:43:01Z1.19.0<p>Handle nested subparsers (<a class="issue-link js-issue-link" href="https://github.com/tox-dev/sphinx-argparse-cli/pull/207">#207</a>)</p>
<p>This handles outputting for nested sub-parsers.</p>
<p>First we modify the load_sub_parsers iterator to check if any of the
<br />arguments are subparsers, and if so, recurse into that subparser and
<br />yield its values back too. (I am as skeptical of yielding from
<br />recursive generator functions as anyone :) If you have hundreds of
<br />levels of nested subparsers I guess this blows up ... but that seems
<br />impractical).</p>
<p>In _mk_sub_command, avoid adding subparsers so they don't show up as
<br />positional arguments (their Action has action.dest of "==SUPPRESS=="
<br />which looks wrong and they don't show up in cmd line help). The
<br />subparsers are listed in the usage-string, e.g.</p>
<p> test subparser [-h] [--foo FOO] {child_two} ...</p>
<p>In _build_opt_grp_title we are taking elements[:2] as the title text
<br />for the option group. This ends up cutting off the full title when
<br />you have nested subparsers. I have to admit I can't really determine
<br />why this is done, but it does not seem to affect any of the test cases
<br />and the output looks correct to me for nested subparsers, with the
<br />full command listed as the option title.</p>gaborbernattag:github.com,2008:Repository/336118160/1.18.22024-09-18T00:05:02Z1.18.2gaborbernattag:github.com,2008:Repository/336118160/1.18.12024-09-08T03:44:16Z1.18.1<p>Fix readme</p>
<p>Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net></p>gaborbernattag:github.com,2008:Repository/336118160/1.18.02024-09-08T03:41:26Z1.18.0gaborbernattag:github.com,2008:Repository/336118160/1.17.02024-08-06T15:54:54Z1.17.0gaborbernattag:github.com,2008:Repository/336118160/1.16.02024-06-18T15:33:11Z1.16.0gaborbernattag:github.com,2008:Repository/336118160/1.15.02024-04-17T18:37:58Z1.15.0gaborbernattag:github.com,2008:Repository/336118160/1.14.02024-03-22T03:26:12Z1.14.0<p>Allow to add content to directive (<a class="issue-link js-issue-link" href="https://github.com/tox-dev/sphinx-argparse-cli/pull/158">#158</a>)</p>
<p>* Allow to add content to directive</p>
<p>* [pre-commit.ci] auto fixes from pre-commit.com hooks</p>
<p>for more information, see <a href="https://pre-commit.ci">https://pre-commit.ci</a></p>
<p>* Minor change</p>
<p>---------</p>
<p>Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com></p>gaborbernattag:github.com,2008:Repository/336118160/1.13.12024-02-21T21:47:57Z1.13.1<p>Apply multiline handling to group description (<a class="issue-link js-issue-link" href="https://github.com/tox-dev/sphinx-argparse-cli/pull/152">#152</a>)</p>
<p>Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com></p>gaborbernattag:github.com,2008:Repository/336118160/1.13.02024-02-18T23:56:35Z1.13.0<p>Add option to show usage before description (<a class="issue-link js-issue-link" href="https://github.com/tox-dev/sphinx-argparse-cli/pull/148">#148</a>)</p>
<p>Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com></p>gaborbernat