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