Skip to content

Commit

Permalink
better command arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheltienne committed Dec 2, 2024
1 parent 5403952 commit b1a43d3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions flow/commands/oddball.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
@click.option(
"--condition",
type=str,
help="condition to run among main1 | main2 | main3 | solo | stp1 | stp2 | stp3",
help="condition to run among main1 | main2 | main3 | solo | stp1 | stp2 | stp3.",
prompt="Condition to run",
)
@click.option(
"--developer", help="run with a mock trigger for dev purposes", is_flag=True
)
def run(condition: str, developer: bool):
@click.option("--mock", help="run with a mock trigger.", is_flag=True)
def run(condition: str, mock: bool):
"""Run oddball() command."""
set_log_level("INFO")
oddball(condition, mock=developer)
oddball(condition, mock=mock)

0 comments on commit b1a43d3

Please sign in to comment.