mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Using Clara 0.0.2.4 - fixes issue with spaces in quoted arguments
This commit is contained in:
parent
92b141ee53
commit
5a6b291878
6
include/external/clara.h
vendored
6
include/external/clara.h
vendored
@ -6,7 +6,7 @@
|
|||||||
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Version 0.0.2.3
|
// Version 0.0.2.4
|
||||||
|
|
||||||
// Only use header guard if we are not using an outer namespace
|
// Only use header guard if we are not using an outer namespace
|
||||||
#if !defined(TWOBLUECUBES_CLARA_H_INCLUDED) || defined(STITCH_CLARA_OPEN_NAMESPACE)
|
#if !defined(TWOBLUECUBES_CLARA_H_INCLUDED) || defined(STITCH_CLARA_OPEN_NAMESPACE)
|
||||||
@ -589,7 +589,7 @@ namespace Clara {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Mode handleOpt( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens ) {
|
Mode handleOpt( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens ) {
|
||||||
if( std::string( " \t:=\0", 5 ).find( c ) == std::string::npos )
|
if( std::string( ":=\0", 5 ).find( c ) == std::string::npos )
|
||||||
return mode;
|
return mode;
|
||||||
|
|
||||||
std::string optName = arg.substr( from, i-from );
|
std::string optName = arg.substr( from, i-from );
|
||||||
@ -603,7 +603,7 @@ namespace Clara {
|
|||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
Mode handlePositional( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens ) {
|
Mode handlePositional( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens ) {
|
||||||
if( inQuotes || std::string( " \t\0", 3 ).find( c ) == std::string::npos )
|
if( inQuotes || std::string( "\0", 3 ).find( c ) == std::string::npos )
|
||||||
return mode;
|
return mode;
|
||||||
|
|
||||||
std::string data = arg.substr( from, i-from );
|
std::string data = arg.substr( from, i-from );
|
||||||
|
Loading…
Reference in New Issue
Block a user