All notable changes to this project will be documented in this file.
- Allow to add content to directive.
- Fix Sphinx warnings about parallel reads.
- Add
force_args_lowerto enable:ref:links with mixed-case program names and arguments.
- Fix multiline handling of group descriptions.
- Don't render arguments with
help=argparse.SUPPRESS. - Show epilogue if present in the command description.
- Add option to show usage before description.
- Support rendering with
argparse.RawDescriptionHelpFormatter.
- Hatchling as backend and exclude sphinx 6.1 support.
- Add the option to override the generated
defaultpart of the CLI parameter description.
- Add the option to override the description using the
descriptionattribute of the directive - Add the option to retrieve the arguments by hooking argparse, in cases where
funcconsumes the arguments and does not return them
- Don't raise label clashing warnings for options which only differ between upper and lower case
- Fix reference clashing for options which only differ between upper and lower case
- Do not render default values for
store_trueandstore_falseactions
- Support Python 3.10
- Support for adding custom subsection group title prefix (
group_title_prefixandgroup_sub_title_prefixdirective arguments)
- Support for using the
refsphinx role to refer to all anchor-able objects generated by the tool - Flags now have their reference title set (for the HTML builder this is shown when hover over the reference)
- Anchors generated no longer collapse multiple subsequent
-characters (to avoid clash when there's a flag and a positional argument with the same name) - Added a sphinx flag
sphinx_argparse_cli_prefix_document(by defaultFalse) to avoid reference clashes when multiple documents generate the same reference labels - The root
progname now is prefixed for the root level optional/positional arguments' header (to avoid multiple anchors with the same id when multiple commands are documented in the same document)
- For sub-commands use the parser description first as description and only then fallback to the help message
- Display the metavar (fallback to dest) if the action has more than one argument (this is inline with how usage is displayed).
- Command line arguments are now bold to highlight them even further from the help text
- Add support for changing the usage width via the
usage_widthoption on the directive - Mark document as always needs update (as the underlying content is coming from outside the sphinx documents)
- Help messages is now interpreted as reStructuredText
- Matching curly braces, single and double quotes in help text will be marked as string literals
- Help messages containing the
default(s)word do not show the default value (as often this indicates the default is already documented in the help text)
- Add support for changing (removing) the title via the
titleattribute of the directive.
- Add support for setting the
progof the parser via the aprogattribute of the directive.
- First version.