We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0e6060 commit aa7b736Copy full SHA for aa7b736
1 file changed
src/docstub/_cli.py
@@ -57,9 +57,19 @@ def _find_configuration(source_dir, config_path):
57
@click.command()
58
@click.version_option(__version__)
59
@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")
+@click.option(
+ "-o",
+ "--out-dir",
63
+ type=click.Path(file_okay=False),
64
+ help="Set explicit output directory.",
65
+)
66
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.")
73
@click.help_option("-h", "--help")
74
def main(source_dir, out_dir, config_path, verbose):
75
verbose = min(2, max(0, verbose)) # Limit to range [0, 2]
0 commit comments