Tidied command line a little

This commit is contained in:
Phil Nash 2010-12-30 18:24:22 +00:00
parent 763d5c368a
commit dc53c3a93f

View File

@ -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 );