Skip to content

Commit

Permalink
Show default values in CLI
Browse files Browse the repository at this point in the history
Closes #658
  • Loading branch information
maresb committed Aug 29, 2024
1 parent 9308e25 commit 7ef40ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conda_lock/conda_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ def main() -> None:
]


@main.command("lock")
@main.command("lock", context_settings={"show_default": True})
@click.option(
"--conda", default=None, help="path (or name) of the conda/mamba executable to use."
)
Expand Down Expand Up @@ -1414,7 +1414,7 @@ def lock(
DEFAULT_INSTALL_OPT_LOCK_FILE = pathlib.Path(DEFAULT_LOCKFILE_NAME)


@main.command("install")
@main.command("install", context_settings={"show_default": True})
@click.option(
"--conda", default=None, help="path (or name) of the conda/mamba executable to use."
)
Expand Down Expand Up @@ -1552,7 +1552,7 @@ def install(
install_func(file=lockfile)


@main.command("render")
@main.command("render", context_settings={"show_default": True})
@click.option(
"--dev-dependencies/--no-dev-dependencies",
is_flag=True,
Expand Down

0 comments on commit 7ef40ee

Please sign in to comment.