Skip to content

Commit 8922b7c

Browse files
authored
add note to help message that stdout might not be shown by default (#328)
* add note to help message that stdout might not be shown by default * update help message based on feedback * same update help message in different file
1 parent 150255d commit 8922b7c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

colcon_core/task/python/test/pytest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def add_arguments(self, *, parser): # noqa: D102
3939
nargs='*', metavar='*', type=str.lstrip,
4040
help='Pass arguments to pytests. '
4141
'Arguments matching other options must be prefixed by a space,\n'
42-
'e.g. --pytest-args " --help"')
42+
'e.g. --pytest-args " --help" (stdout might not be shown by '
43+
'default, e.g. add `--event-handlers console_cohesion+`)')
4344
parser.add_argument(
4445
'--pytest-with-coverage',
4546
action='store_true',

colcon_core/task/python/test/setuppy_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def add_arguments(self, *, parser): # noqa: D102
2323
nargs='*', metavar='*', type=str.lstrip,
2424
help='Pass arguments to Python unittests. '
2525
'Arguments matching other options must be prefixed by a space,\n'
26-
'e.g. --unittest-args " --help"')
26+
'e.g. --unittest-args " --help" (stdout might not be shown by '
27+
'default, e.g. add `--event-handlers console_cohesion+`)')
2728

2829
def match(self, context, env, setup_py_data): # noqa: D102
2930
return True

0 commit comments

Comments
 (0)