Skip to content

Commit eb602a6

Browse files
committed
sim_if/nvc.py: quote words with spaces in printed command
This allows the command to be directly copied and pasted without having to quote e.g. the JSON in the `-g` argument.
1 parent 8fcbf59 commit eb602a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vunit/sim_if/nvc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def simulate(self, output_path, test_suite_name, config, elaborate_only):
275275
if wave_file:
276276
cmd += [f"--wave={wave_file}"]
277277

278-
print(" ".join(cmd))
278+
print(" ".join([f"'{word}'" if ' ' in word else word for word in cmd]))
279279

280280
status = True
281281

0 commit comments

Comments
 (0)