Skip to content

Commit ddea6fc

Browse files
committed
Mention custom args in help text.
1 parent da11f9a commit ddea6fc

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/ParallelTestRunner.jl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -505,18 +505,24 @@ function parse_args(args; custom::Array{String} = String[])
505505

506506
help = extract_flag!(args, "--help")
507507
if help !== nothing
508-
println(
508+
usage =
509509
"""
510510
Usage: runtests.jl [--help] [--list] [--jobs=N] [TESTS...]
511511
512512
--help Show this text.
513513
--list List all available tests.
514514
--verbose Print more information during testing.
515515
--quickfail Fail the entire run as soon as a single test errored.
516-
--jobs=N Launch `N` processes to perform tests.
516+
--jobs=N Launch `N` processes to perform tests."""
517517

518-
Remaining arguments filter the tests that will be executed."""
519-
)
518+
if !isempty(custom)
519+
usage *= "\n\nCustom arguments:"
520+
for flag in custom
521+
usage *= "\n --$flag"
522+
end
523+
end
524+
usage *= "\n\nRemaining arguments filter the tests that will be executed."
525+
println(usage)
520526
exit(0)
521527
end
522528

0 commit comments

Comments
 (0)