• Home
  • Raw
  • Download

Lines Matching refs:cmdLine

355 			CommandLine			cmdLine;  in selfTest()  local
356 const bool parseOk = parser.parse(0, DE_NULL, &cmdLine, err); in selfTest()
364 CommandLine cmdLine; in selfTest() local
365 const bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
374 CommandLine cmdLine; in selfTest() local
375 const bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
384 CommandLine cmdLine; in selfTest() local
385 const bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
388 DE_TEST_ASSERT(cmdLine.getArgs().size() == DE_LENGTH_OF_ARRAY(args)); in selfTest()
391 DE_TEST_ASSERT(cmdLine.getArgs()[ndx] == args[ndx]); in selfTest()
421 CommandLine cmdLine; in selfTest() local
423 bool parseOk = parser.parse(0, DE_NULL, &cmdLine, err); in selfTest()
428 DE_TEST_ASSERT(!cmdLine.hasOption<TestStringOpt>()); in selfTest()
429 DE_TEST_ASSERT(!cmdLine.hasOption<TestIntOpt>()); in selfTest()
430 DE_TEST_ASSERT(cmdLine.getOption<TestNamedOpt>() == 1); in selfTest()
431 DE_TEST_ASSERT(cmdLine.getOption<TestBoolOpt>() == false); in selfTest()
432 DE_TEST_ASSERT(cmdLine.getOption<TestStringDefOpt>() == "foo"); in selfTest()
438 CommandLine cmdLine; in selfTest() local
440 bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
445 DE_TEST_ASSERT(cmdLine.getOption<TestStringOpt>() == "test value"); in selfTest()
446 DE_TEST_ASSERT(cmdLine.getOption<TestIntOpt>() == 9); in selfTest()
447 DE_TEST_ASSERT(cmdLine.getOption<TestBoolOpt>()); in selfTest()
448 DE_TEST_ASSERT(cmdLine.getOption<TestNamedOpt>() == ~0ull); in selfTest()
449 DE_TEST_ASSERT(cmdLine.getOption<TestStringDefOpt>() == "foo"); in selfTest()
455 CommandLine cmdLine; in selfTest() local
457 bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
462 DE_TEST_ASSERT(cmdLine.getOption<TestStringOpt>() == "foo"); in selfTest()
463 DE_TEST_ASSERT(cmdLine.getOption<TestBoolOpt>()); in selfTest()
464 DE_TEST_ASSERT(!cmdLine.hasOption<TestIntOpt>()); in selfTest()
466 DE_TEST_ASSERT(cmdLine.getArgs().size() == 2); in selfTest()
467 DE_TEST_ASSERT(cmdLine.getArgs()[0] == "--int=2"); in selfTest()
468 DE_TEST_ASSERT(cmdLine.getArgs()[1] == "-b"); in selfTest()
474 CommandLine cmdLine; in selfTest() local
476 bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
481 DE_TEST_ASSERT(cmdLine.getOption<TestStringOpt>() == "--"); in selfTest()
482 DE_TEST_ASSERT(cmdLine.getOption<TestBoolOpt>()); in selfTest()
483 DE_TEST_ASSERT(!cmdLine.hasOption<TestIntOpt>()); in selfTest()
485 DE_TEST_ASSERT(cmdLine.getArgs().size() == 1); in selfTest()
486 DE_TEST_ASSERT(cmdLine.getArgs()[0] == "foo"); in selfTest()
492 CommandLine cmdLine; in selfTest() local
494 bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
503 CommandLine cmdLine; in selfTest() local
505 bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
514 CommandLine cmdLine; in selfTest() local
516 bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
525 CommandLine cmdLine; in selfTest() local
527 bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
536 CommandLine cmdLine; in selfTest() local
538 bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
547 CommandLine cmdLine; in selfTest() local
549 bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
558 CommandLine cmdLine; in selfTest() local
560 bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
569 CommandLine cmdLine; in selfTest() local
571 bool parseOk = parser.parse(DE_LENGTH_OF_ARRAY(args), &args[0], &cmdLine, err); in selfTest()
575 DE_TEST_ASSERT(cmdLine.getOption<TestStringOpt>() == ""); in selfTest()
576 DE_TEST_ASSERT(cmdLine.getOption<TestStringDefOpt>() == ""); in selfTest()
577 DE_TEST_ASSERT(cmdLine.getOption<TestBoolOpt>()); in selfTest()