File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff 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\n Custom arguments:"
520+ for flag in custom
521+ usage *= " \n --$flag "
522+ end
523+ end
524+ usage *= " \n\n Remaining arguments filter the tests that will be executed."
525+ println (usage)
520526 exit (0 )
521527 end
522528
You can’t perform that action at this time.
0 commit comments