From 742457cbcf4756271eb12c86140100e64e35dac6 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Thu, 9 Jun 2016 19:19:55 +0100 Subject: [PATCH] Use Clara v0.0.2.4 (updated) - fix for string lengths --- include/external/clara.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/external/clara.h b/include/external/clara.h index 6ab30136..369c1b76 100644 --- a/include/external/clara.h +++ b/include/external/clara.h @@ -589,7 +589,7 @@ namespace Clara { } } Mode handleOpt( std::size_t i, char c, std::string const& arg, std::vector& tokens ) { - if( std::string( ":=\0", 5 ).find( c ) == std::string::npos ) + if( std::string( ":=\0", 3 ).find( c ) == std::string::npos ) return mode; std::string optName = arg.substr( from, i-from ); @@ -603,7 +603,7 @@ namespace Clara { return None; } Mode handlePositional( std::size_t i, char c, std::string const& arg, std::vector& tokens ) { - if( inQuotes || std::string( "\0", 3 ).find( c ) == std::string::npos ) + if( inQuotes || std::string( "\0", 1 ).find( c ) == std::string::npos ) return mode; std::string data = arg.substr( from, i-from );