Skip to content

Commit aa7b736

Browse files
committed
Add missing help text to CLI
1 parent e0e6060 commit aa7b736

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

src/docstub/_cli.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,19 @@ def _find_configuration(source_dir, config_path):
5757
@click.command()
5858
@click.version_option(__version__)
5959
@click.argument("source_dir", type=click.Path(exists=True, file_okay=False))
60-
@click.option("-o", "--out-dir", type=click.Path(file_okay=False))
61-
@click.option("--config", "config_path", type=click.Path(exists=True, dir_okay=False))
62-
@click.option("-v", "--verbose", count=True, help="Log more details")
60+
@click.option(
61+
"-o",
62+
"--out-dir",
63+
type=click.Path(file_okay=False),
64+
help="Set explicit output directory.",
65+
)
66+
@click.option(
67+
"--config",
68+
"config_path",
69+
type=click.Path(exists=True, dir_okay=False),
70+
help="Set explicitly configuration file.",
71+
)
72+
@click.option("-v", "--verbose", count=True, help="Log more details.")
6373
@click.help_option("-h", "--help")
6474
def main(source_dir, out_dir, config_path, verbose):
6575
verbose = min(2, max(0, verbose)) # Limit to range [0, 2]

0 commit comments

Comments
 (0)