Skip to content

Commit

Permalink
Display default param values in help texts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmuhs committed Sep 24, 2019
1 parent fd3beb6 commit 6d35e41
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mythx_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
@click.option(
"--debug/--no-debug",
default=False,
show_default=True,
envvar="MYTHX_DEBUG",
help="Provide additional debug output",
)
Expand Down Expand Up @@ -57,6 +58,7 @@
"fmt",
default="simple",
type=click.Choice(FORMAT_RESOLVER.keys()),
show_default=True,
help="The format to display the results in",
)
@click.pass_context
Expand Down Expand Up @@ -148,7 +150,9 @@ def find_solidity_files(project_dir):
"async_flag",
help="Submit the job and print the UUID, or wait for execution to finish",
)
@click.option("--mode", type=click.Choice(["quick", "full"]), default="quick")
@click.option(
"--mode", type=click.Choice(["quick", "full"]), default="quick", show_default=True
)
@click.pass_obj
def analyze(ctx, target, async_flag, mode):
"""Analyze the given directory or arguments with MythX.
Expand Down Expand Up @@ -249,6 +253,7 @@ def status(ctx, uuids):
"--number",
default=5,
type=click.IntRange(min=1, max=100), # ~ 5 requests à 20 entries
show_default=True,
help="The number of most recent analysis jobs to display",
)
@click.pass_obj
Expand Down

0 comments on commit 6d35e41

Please sign in to comment.