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_lower
to 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
default
part of the CLI parameter description.
- Add the option to override the description using the
description
attribute of the directive - Add the option to retrieve the arguments by hooking argparse, in cases where
func
consumes 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_true
andstore_false
actions
- Support Python 3.10
- Support for adding custom subsection group title prefix (
group_title_prefix
andgroup_sub_title_prefix
directive arguments)
- Support for using the
ref
sphinx 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
prog
name 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_width
option 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
title
attribute of the directive.
- Add support for setting the
prog
of the parser via the aprog
attribute of the directive.
- First version.