File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,9 @@ def run(scenario_file: str, additional_args: tuple[str]):
169169 scenario_path = Path (scenario_file ).resolve ()
170170 scenario_name = scenario_path .stem
171171
172+ if additional_args and ("--help" in additional_args or "-h" in additional_args ):
173+ return subprocess .run ([sys .executable , scenario_path , "--help" ])
174+
172175 with open (scenario_path , "rb" ) as file :
173176 scenario_data = base64 .b64encode (file .read ()).decode ()
174177
@@ -210,8 +213,6 @@ def run(scenario_file: str, additional_args: tuple[str]):
210213 # Add additional arguments
211214 if additional_args :
212215 helm_command .extend (["--set" , f"args={ ' ' .join (additional_args )} " ])
213- if "--help" in additional_args or "-h" in additional_args :
214- return subprocess .run ([sys .executable , scenario_path , "--help" ])
215216
216217 helm_command .extend ([name , COMMANDER_CHART ])
217218
You can’t perform that action at this time.
0 commit comments