Skip to content

Commit

Permalink
Add expose_value=False to some .click.PARAMS
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Oct 30, 2023
1 parent 0cacda5 commit 4e48613
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions message_ix_models/util/click.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,14 @@ def unique_id() -> str:
"dest": Option(
["--dest"],
callback=store_context,
expose_value=False,
help="Destination URL for created scenario(s).",
),
"dry_run": Option(
["--dry-run"],
is_flag=True,
callback=store_context,
expose_value=False,
help="Only show what would be done.",
),
"force": Option(
Expand All @@ -187,6 +189,7 @@ def unique_id() -> str:
help="Code list to use for 'node' dimension.",
callback=exec_cb("context.model.regions = value"),
type=Choice(codelists("node")),
expose_value=False,
),
"output_model": Option(
["--output-model"], help="Model name under which scenarios should be generated."
Expand All @@ -200,6 +203,7 @@ def unique_id() -> str:
"quiet": Option(
["--quiet"],
is_flag=True,
expose_value=False,
help="Show less or no output.",
),
"regions": Option(
Expand Down

0 comments on commit 4e48613

Please sign in to comment.