From f82861fb0a38be97ad6944758ae444f1909ffe1a Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 24 Aug 2012 18:57:49 +0100 Subject: [PATCH] Changed shorthand for exclude: to ~ --- include/internal/catch_commandline.hpp | 4 ++-- single_include/catch.hpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/internal/catch_commandline.hpp b/include/internal/catch_commandline.hpp index b0b9f4ce..2c4353ad 100644 --- a/include/internal/catch_commandline.hpp +++ b/include/internal/catch_commandline.hpp @@ -134,8 +134,8 @@ namespace Catch { std::cout << "[" << cmd[i] << "]" << std::endl; if( startsWith( cmd[i], "exclude:" ) ) filters.addFilter( TestCaseFilter( cmd[i].substr( 8 ), IfFilterMatches::ExcludeTests ) ); - else if( startsWith( cmd[i], "ex:" ) ) - filters.addFilter( TestCaseFilter( cmd[i].substr( 3 ), IfFilterMatches::ExcludeTests ) ); + else if( startsWith( cmd[i], "~" ) ) + filters.addFilter( TestCaseFilter( cmd[i].substr( 1 ), IfFilterMatches::ExcludeTests ) ); else filters.addFilter( TestCaseFilter( cmd[i] ) ); } diff --git a/single_include/catch.hpp b/single_include/catch.hpp index 07d2af59..f08c237c 100644 --- a/single_include/catch.hpp +++ b/single_include/catch.hpp @@ -1,5 +1,5 @@ /* - * Generated: 2012-08-24 18:54:08.754777 + * Generated: 2012-08-24 18:57:26.838444 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved. @@ -2597,8 +2597,8 @@ namespace Catch { std::cout << "[" << cmd[i] << "]" << std::endl; if( startsWith( cmd[i], "exclude:" ) ) filters.addFilter( TestCaseFilter( cmd[i].substr( 8 ), IfFilterMatches::ExcludeTests ) ); - else if( startsWith( cmd[i], "ex:" ) ) - filters.addFilter( TestCaseFilter( cmd[i].substr( 3 ), IfFilterMatches::ExcludeTests ) ); + else if( startsWith( cmd[i], "~" ) ) + filters.addFilter( TestCaseFilter( cmd[i].substr( 1 ), IfFilterMatches::ExcludeTests ) ); else filters.addFilter( TestCaseFilter( cmd[i] ) ); }