From 086547c490680cae0d371f6eb61ea299cd7250f2 Mon Sep 17 00:00:00 2001 From: Benjamin Alterauge <5332429+ageeye@users.noreply.github.com> Date: Wed, 18 May 2022 20:48:51 +0200 Subject: [PATCH] List all available test units, if none is selected. From the command line (FreeCADCmd) only which not need the GUI. A better description Grammatically improvement Use PrintMessage --- src/App/Application.cpp | 5 ++++- src/Mod/Test/TestApp.py | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index 3468e20a87..6d7d6667c2 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -2160,7 +2160,7 @@ void parseProgramOptions(int ac, char ** av, const string& exe, variables_map& v ("log-file", value(), "Unlike --write-log this allows logging to an arbitrary file") ("user-cfg,u", value(),"User config file to load/save user settings") ("system-cfg,s", value(),"System config file to load/save system settings") - ("run-test,t", value() ,"Test case - or 0 for all") + ("run-test,t", value()->implicit_value(""),"Run a given test case (use 0 (zero) to run all tests). If no argument is provided then return list of all available tests.") ("module-path,M", value< vector >()->composing(),"Additional module paths") ("python-path,P", value< vector >()->composing(),"Additional python paths") ("single-instance", "Allow to run a single instance of the application") @@ -2394,6 +2394,9 @@ void processProgramOptions(const variables_map& vm, std::map