You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.
TEST_CASE( "Opt value can start with a dash" ) {
std::string name;
bool showHelp = false;
auto parser
= Help( showHelp )
| Opt( name, "name" )
["-n"]["--name"]
( "the name to use" );
auto result = parser.parse( Args{ "TestApp", "-n", "-lfoobar" } );
CHECK( result );
REQUIRE( name == "-lfoobar" );
}
I have a program that receives compiler flags in arguments so a leading dash is common.
The text was updated successfully, but these errors were encountered:
Also related to this issue:
if I have an option that takes an integer, it can no longer be negative, since Clara can't parse things that start this a minus.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This test case fails:
I have a program that receives compiler flags in arguments so a leading dash is common.
The text was updated successfully, but these errors were encountered: