15 #include <gtest/gtest.h> 16 #include "../../include/ecl/command_line.hpp" 38 TEST(CommandLineTests,verify) {
41 CmdLine cmd(
"This is a test program to test the command line parsing facilities provided by TCLAP.");
45 SwitchArg debugSwitch(
"d",
"debug",
"Enable debugging.");
51 ValueArg<int> intArg(
"i",
"integer",
"An integer argument for testing.",
false,5,
"integer");
65 ADD_FAILURE() <<
"Failed to parse commadn line arguments";
73 int main(
int argc,
char **argv) {
78 testing::InitGoogleTest(&argc,argv);
79 return RUN_ALL_TESTS();
Defines the exception that is thrown whenever a command line is created and parsed.
Manages the command line parsing object.
int main(int argc, char **argv)
TEST(CommandLineTests, verify)
void parse(int argc, char **argv)