Skip to content

Commit ce1e56a

Browse files
authored
Revert --no-trace override in mcrun
Accidentally overwrote the newest addition of --no-trace variable. This commit reverts this overwrite
1 parent ec0f322 commit ce1e56a

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

tools/Python/mcrun/mcrun.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,16 @@ def add_mcstas_options(parser):
264264

265265
add('-n', '--ncount',
266266
metavar='COUNT', type=float, default=1000000,
267-
help='Set number of %s to simulate' % (mccode_config.configuration["PARTICLE"]))
267+
help='Set number of %ss to simulate' % (mccode_config.configuration["PARTICLE"]))
268268

269269
add('-t', '--trace',
270270
metavar='trace', type=int, default=0,
271-
help='Enable trace of %s through instrument' % (mccode_config.configuration["PARTICLE"]))
272-
271+
help='Enable trace of %ss through instrument' % (mccode_config.configuration["PARTICLE"]))
272+
273+
add('--no-trace',
274+
action='store_true', metavar='notrace', default=None,
275+
help='Disable trace of %ss in instrument (combine with -c)' % (mccode_config.configuration["PARTICLE"]))
276+
273277
add('-y', '--yes',
274278
action='store_true', default=False,
275279
help='Assume any default parameter value in instrument')

0 commit comments

Comments
 (0)