• * chore: update clang-tidy
    
    Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
    
    * refactor: address clang-tidy
    
    * fix: C++11 support
    
    Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
    
    * chore: two more clang-tidy fixes
    
    Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
    
    * fix: get_inject_separator should be bool
    
    * refactor: addressing review feedback
    
    Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
    Co-authored-by: Philip Top <phlptp@gmail.com>
    
    * Apply suggestions from code review
    
    * Update include/CLI/Config.hpp
    
    * Update include/CLI/Config.hpp
    
    * Update include/CLI/Config.hpp
    
    * Update include/CLI/Config.hpp
    
    Co-authored-by: Philip Top <phlptp@gmail.com>
    Henry Schreiner authored
     
    Browse File »


  • * add a few tests related to github issues
    
    * change how the default is displayed in the help message prev was =XXXX,  this was confusing in some cases particularly with flags or with multiple option names.    Now is [default=XXXX]  which makes it clearer what the value represents.
    
    * Try to fix RTTI issue
    
    * style: pre-commit.ci fixes
    
    * Fix subcommand callbacks being called multiple times if in an option group
    
    * style: pre-commit.ci fixes
    
    * remove extra group call
    
    * change [default=XXXXD] to just [XXXXX] for the default specification
    
    * update changelog
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Philip Top authored
     
    Browse File »





  • * Fix internal header include paths.
    
    The extra leading "CLI/" part of include directives prevents the inclusion
    of CLI.hpp from a relative directory without an extra -I or /I compiler
    directive.
    
    * Fix single header generation script.
    
    Files included with "" should be relative to the header file location first.
    Sam Hocevar authored
     
    Browse File »





  • * add expanded type_size specification
    
    * add some more checks for type_size_max
    
    * continued work on getting type sizes more flexible
    
    * make some more tweaks to option to split up validate and reduce sections
    
    * git rid of exceptions on the type_size functions exceptions,  allow any number to be entered for the min and max and don't make a distinction between flags and other types.
    
    * add expected count
    
    * add the allow extra args flag in an option
    
    * start working in allow_extra_args
    
    * write some stuff in the book,  and continue working on the failing test cases
    
    * fix a few more of the helpers tests
    
    * a few more test cases running
    
    * all tests pass, fixing calls in ini files
    
    * get vector<pair> working and all tests passing
    
    * change callback to use reference to remove allocation and copy operation
    
    * add support and test for vector<vector<X>>
    
    * change Validators_ to validators_ for consistency
    
    * fix linux warnings and errors by reording some templates and adding some typename keywords
    
    * add support for std::vector<X> as the cross conversion type so optional<std::vector<X>> is supported using the full template of add_option.
    
    * a few more test cases to take care of some coverage gaps
    
    * add missing parenthesis
    
    * add some more tests for coverage gaps
    
    * add test for flag like option
    
    * add transform test for `as<X>` function and make it pass through the defaults
    
    * add a few more tests and have vector default string interpreted correctly.
    
    * add test for defaulted integer,  and route default string for defaulted value which would otherwise be empty
    
    * some code cleanup and comments and few more test coverage gap tests
    
    * add more tests and fix a few bugs on the type size and different code paths
    
    * remove path in results by fixing the clear of options so they go back to parsing state.
    
    * get coverage back to 100%
    
    * clang_tidy, and codacy fixes
    
    * reorder the lexical_conversion definitions
    
    * update some formatting
    
    * update whitespace on book chapter
    Philip Top authored
     
    Browse File »

  • fix incorrect parenthesis
    
    update some clang-tidy fixes mainly else after return but a few conversions from into to bool
    
    add extra newline before footer
    
    add an extra field to the extra Error
    
    add a footer callback for help operations
    Philip Top authored
     
    Browse File »

  • * First streaming version
    
    * Using to_string instead
    
    * Switching to new backend
    
    * Moving to capture function for defaults
    
    * Rename capture_default + _str
    
    * defaultval -> default_str, added always_capture_default
    
    * Fix style
    
    * Adding tests and docs to readme
    
    * Dropping macOS on Travis (supported through Azure)
    Henry Schreiner authored
     
    Browse File »

  • * change the move function to _move_option and add an additional test
    
    add a validation check on min options to make sure it is even possible to succeed.
    
    add some additional tests to cover code paths and potential errors.
    
    add a number of additional tests and checks and fix some issues with the add function in option_groups
    
    clean up example and help formatting
    
    add option_groups example to play with
    
    move create_option_group to a member function using a dummy template
    
    add some optionGroup tests
    
    add min and max options calls and an associated Error call
    
    * add ranges example,  add excludes to app for options and subcommands.
    
    * add some tests on ranges, and some subcommand tests with exclusion
    
    * add tests in optionGroups for some invalid inputs
    
    * add required option to subcommands and option_groups
    
    * add disabled flag
    
    * add disable option to subcommands and some more tests
    
    * start work on ReadMe modifications
    
    * update the readme with descriptions of function and methods added for option_groups
    
    * clear up gcc 4.7 warnings
    
    * some update to the Readme and a few more warnings fixed
    
    * Minor readme touchup
    Philip Top authored
     
    Browse File »

  • Updates to the readme
    
    update the readme with some documentation
    
    add a few more tests to complete code coverage
    
    update with count strings in flags instead an array of strings for each count
    
    add the '!' shortcut notation.  add some checks on the help output
    
    allow the false flag syntax to support --option{false}
    
    add a bool lexical cast to make everything consistent when converting to a bool.  Moved a few functions around
    
    make the command line behave like the INI file wrt flags, flag options are allowed to process the value so `--flag=false` actually does the expected thing.
    
    Add functionality similar to click style argument that allow specifying a false flag that when used generates a false result on the flag.
    Philip Top authored
     
    Browse File »

  • increment the parse_ variable on unnamed subcommands. 
    
    update the readme, and add a formatter test for nameless subcommands in nondefault group with other named subcommands.
    
    add a test of default arguments
    
    add a formatter test
    
    add tests for unnamed subcommands and an example of the partitioned subcommands.
    
    change the app_p to be a shared_ptr so you can add an App later on and merge them together
    
    add the ability to add unnamed subcommands that allow partitioning on options into multiple apps.
    Philip Top authored
     
    Browse File »








  • Removing OptionFormatter
    
    Rename files
    
    Rename to just Formatter
    
    Remove OptionFormatMode (just needs a bool)
    
    Renaming option functions on formatter
    Henry Fredrick Schreiner authored
     
    Browse File »
  • in progress: formatters
    
    Getting closer
    
    Working on apps
    
    One test actually runs
    
    All builds, added filter functions
    
    Reverting a few behavours as needed
    
    Repairs
    
    All tests pass
    
    Fixing error with adding help flag
    
    Labels are simpler mappings, normalized setters
    
    Adding help_all
    
    Adding a few more tests
    
    One more line tested
    
    Adding one more check
    
    Adding to readme
    
    Simplify naming
    
    Adding default constructors
    
    Fixing spacing issues with subcommand all printout
    
    Adding a couple of tests
    Henry Fredrick Schreiner authored
     
    Browse File »