Skip to content

Commit

Permalink
Merge pull request #413 from radish-bdd/bugfix/stable-remove-equality
Browse files Browse the repository at this point in the history
fix argument parsing for --scenarios
  • Loading branch information
fliiiix committed Mar 29, 2021
2 parents ca48881 + b513842 commit d0aa801
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion radish/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def run_features(core):
# scenario choice
amount_of_scenarios = sum(len(f.scenarios) for f in core.features_to_run)
if world.config.scenarios:
world.config.scenarios = [int(s) for s in world.config.scenarios.split(",")]
world.config.scenarios = [
int(s.strip().replace("=", "")) for s in world.config.scenarios.split(",")
]
for s in world.config.scenarios:
if not 0 < s <= amount_of_scenarios:
raise ScenarioNotFoundError(s, amount_of_scenarios)
Expand Down

0 comments on commit d0aa801

Please sign in to comment.