mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Tidied command line a little
This commit is contained in:
		| @@ -18,14 +18,14 @@ | ||||
|  | ||||
| namespace Catch | ||||
| { | ||||
|     // -l --list:tests [xml] lists available tests (optionally in xml) | ||||
|     // -l --list:reports [xml] lists available reports (optionally in xml) | ||||
|     // -l --list:all [xml] lists available tests and reports (optionally in xml) | ||||
|     // -t --test "testspec" (any number) | ||||
|     // -r --report <type> | ||||
|     // -o --output filename to write to | ||||
|     // -s --success report successful cases too | ||||
|     // -b --break breaks into debugger on test failure | ||||
|     // -l, --list tests [xml] lists available tests (optionally in xml) | ||||
|     // -l, --list reports [xml] lists available reports (optionally in xml) | ||||
|     // -l, --list all [xml] lists available tests and reports (optionally in xml) | ||||
|     // -t, --test "testspec" ["testspec", ...] | ||||
|     // -r, --report <type> | ||||
|     // -o, --out filename to write to | ||||
|     // -s, --success report successful cases too | ||||
|     // -b, --break breaks into debugger on test failure | ||||
| 	class ArgParser : NonCopyable | ||||
|     { | ||||
|         enum Mode | ||||
| @@ -57,7 +57,7 @@ namespace Catch | ||||
|                         changeMode( cmd, modeTest ); | ||||
|                     else if( cmd == "-r" || cmd == "--report" ) | ||||
|                         changeMode( cmd, modeReport ); | ||||
|                     else if( cmd == "-o" || cmd == "--output" ) | ||||
|                     else if( cmd == "-o" || cmd == "--out" ) | ||||
|                         changeMode( cmd, modeOutput ); | ||||
|                     else if( cmd == "-s" || cmd == "--success" ) | ||||
|                         changeMode( cmd, modeSuccess ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash