tag:github.com,2008:https://github.com/tox-dev/sphinx-argparse-cli/releases Tags from sphinx-argparse-cli 2024-12-10T01:42:45Z tag:github.com,2008:Repository/336118160/1.19.0 2024-12-10T01:43:01Z 1.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> gaborbernat tag:github.com,2008:Repository/336118160/1.18.2 2024-09-18T00:05:02Z 1.18.2 gaborbernat tag:github.com,2008:Repository/336118160/1.18.1 2024-09-08T03:44:16Z 1.18.1 <p>Fix readme</p> <p>Signed-off-by: Bernát Gábor &lt;bgabor8@bloomberg.net&gt;</p> gaborbernat tag:github.com,2008:Repository/336118160/1.18.0 2024-09-08T03:41:26Z 1.18.0 gaborbernat tag:github.com,2008:Repository/336118160/1.17.0 2024-08-06T15:54:54Z 1.17.0 gaborbernat tag:github.com,2008:Repository/336118160/1.16.0 2024-06-18T15:33:11Z 1.16.0 gaborbernat tag:github.com,2008:Repository/336118160/1.15.0 2024-04-17T18:37:58Z 1.15.0 gaborbernat tag:github.com,2008:Repository/336118160/1.14.0 2024-03-22T03:26:12Z 1.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] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;</p> gaborbernat tag:github.com,2008:Repository/336118160/1.13.1 2024-02-21T21:47:57Z 1.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] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;</p> gaborbernat tag:github.com,2008:Repository/336118160/1.13.0 2024-02-18T23:56:35Z 1.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] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;</p> gaborbernat