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]):
169
169
scenario_path = Path (scenario_file ).resolve ()
170
170
scenario_name = scenario_path .stem
171
171
172
+ if additional_args and ("--help" in additional_args or "-h" in additional_args ):
173
+ return subprocess .run ([sys .executable , scenario_path , "--help" ])
174
+
172
175
with open (scenario_path , "rb" ) as file :
173
176
scenario_data = base64 .b64encode (file .read ()).decode ()
174
177
@@ -210,8 +213,6 @@ def run(scenario_file: str, additional_args: tuple[str]):
210
213
# Add additional arguments
211
214
if additional_args :
212
215
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" ])
215
216
216
217
helm_command .extend ([name , COMMANDER_CHART ])
217
218
You can’t perform that action at this time.
0 commit comments