MCPcopy Create free account
hub / github.com/CLIUtils/CLI11 / modify_subcommand

Method modify_subcommand

fuzz/fuzzApp.cpp:667–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667void FuzzApp::modify_subcommand(CLI::App *app, const std::string &modifiers) {
668 for(const auto mod : modifiers) {
669 switch(mod) {
670 case 'w':
671 case 'W':
672 app->allow_windows_style_options(mod < '`');
673 break;
674 case 'n':
675 case 'N':
676 app->allow_non_standard_option_names(mod < '`');
677 break;
678 case 'p':
679 case 'P':
680 app->allow_subcommand_prefix_matching(mod < '`');
681 break;
682 case 'f':
683 case 'F':
684 app->fallthrough(mod < '`');
685 break;
686 case 'v':
687 case 'V':
688 app->validate_positionals(mod < '`');
689 break;
690 case 'e':
691 case 'E':
692 app->positionals_at_end(mod < '`');
693 break;
694 default:
695 break;
696 }
697 }
698}
699
700SubcommandData extract_subcomand_info(const std::string &description_string, std::size_t index) {
701 SubcommandData sub_data;

Callers

nothing calls this directly

Tested by

no test coverage detected