Skip to content

Improve help text of CLI command descriptions #313

@jameshadfield

Description

@jameshadfield

Currently the formatting of the help messages (defined via the leading docstrings at the start of each script in augur/*.py) is not respected by augur <command> --help. We should improve this which will encourage more detailed help messages. Note that read-the-docs formats things correctly 💯

Example: augur distance

Docstring correctly formatted -- see https://nextstrain-augur.readthedocs.io/en/stable/cli.html#distance
image

Incorrect formatting:

$ augur distance --help
usage: augur distance [-h] --tree TREE --alignment ALIGNMENT [ALIGNMENT ...]
                      --gene-names GENE_NAMES [GENE_NAMES ...]
                      --attribute-name ATTRIBUTE_NAME [ATTRIBUTE_NAME ...]
                      --compare-to {root,ancestor,pairwise}
                      [{root,ancestor,pairwise} ...] --map MAP [MAP ...]
                      [--date-annotations DATE_ANNOTATIONS]
                      [--earliest-date EARLIEST_DATE]
                      [--latest-date LATEST_DATE] --output OUTPUT

Calculate the distance between sequences across entire genes or at a
predefined subset of sites. Distance calculations require selection of a
comparison method (to determine which sequences to compare) and a distance map
(to determine the weight of a mismatch between any two sequences). Comparison
methods ================== Comparison methods include: #. root: the root and
all nodes in the tree (the previous default for all distances) #. ancestor:
each tip from a current season and its immediate ancestor (optionally, from a
...

Possible solutions

  1. CLI: Use raw descriptions #1641
  2. Render the rST to plain text (ref)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions