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
{
// -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 );