1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 20:23:55 +00:00

21 Commits

Author SHA1 Message Date
Philip Top
eab92ed988 modified option template (#285)
* add some tests with default capture on the two parameter template and some notes about it in the README.md

remove the test from visual studio 2015
vs2015 doesn't seem to properly deal with is_assignable in the cases we care about so make a standalone version that is more direct in what we are doing

add version to appveyor and add some notes to the readme

fix a few test cases to make sure code is covered and test a few other paths

remove unneeded enum streaming operator

add some diagnostic escapes around trait code to eliminate gcc Wnarrowing warnings

work specification of the template operations

remove optional add some templates for options conversions

add the two parameter template for add_option

* Fix some comments from Code review and add more description

* fix case when string_view doesn't work to append to a string.

* This PR also addressed #300

* modify lexical_cast to take  const std::string &, instead of by value to allow string_view in a few cases
2019-07-29 00:19:35 -04:00
Henry Fredrick Schreiner
d46c2c5727 Adding Config class 2018-05-09 16:08:32 +02:00
Henry Fredrick Schreiner
af2ed66d6e Just use Formatter
Removing OptionFormatter

Rename files

Rename to just Formatter

Remove OptionFormatMode (just needs a bool)

Renaming option functions on formatter
2018-04-30 08:17:31 -04:00
Henry Fredrick Schreiner
952f2913e3 First attempt at formatter (app and option)
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
2018-04-30 08:17:31 -04:00
Henry Fredrick Schreiner
7a7064df4e Adding optional, refactor single file 2018-04-04 18:29:32 +02:00
Henry Fredrick Schreiner
db202b831e Factoring out C++ version check to Macros file 2018-04-04 18:29:32 +02:00
Henry Fredrick Schreiner
fd09c12e3b Adding version macro, preparing for release 2017-12-01 07:23:21 -05:00
Henry Schreiner
e26fcd2470 fix composite order 2017-11-26 15:11:48 -05:00
Henry Fredrick Schreiner
3e651e3b7e Moved more string processing to Error 2017-11-26 15:11:48 -05:00
Henry Fredrick Schreiner
916cde58cf BSD licence, preparing for 1.0 release 2017-06-01 09:23:04 -04:00
Henry Fredrick Schreiner
9301925359 Fix single file include 2017-05-31 12:21:42 -04:00
Henry Fredrick Schreiner
27f718125d Reformat with clang-format 2017-05-31 12:03:05 -04:00
Henry Fredrick Schreiner
60934c8a27 Fixing include order 2017-05-31 10:59:25 -04:00
Henry Fredrick Schreiner
1619e863a2 Fixing name CLIUtils 2017-03-25 16:54:57 -04:00
Henry Fredrick Schreiner
e29bd785c6 Change CLTools -> CLITools 2017-03-23 16:11:54 -04:00
Henry Fredrick Schreiner
cb2646a56c Moving to new location 2017-03-23 15:55:23 -04:00
Henry Fredrick Schreiner
bf0b18a9f4 After discussion, LGPL seems to be the correct license 2017-02-17 19:58:06 -05:00
Henry Fredrick Schreiner
905c23bcd0 Change license 2017-02-12 13:01:43 -05:00
Henry Fredrick Schreiner
aac712b754 Adding ini parser, cleanup test CMake 2017-02-09 17:18:24 -05:00
Henry Fredrick Schreiner
494a65f812 Dropping Make syntax, moving to pointers from combiners, structured errors.
This mostly is cleanup, with fewer alternative methods and more standard syntax, avoiding the use of the namespace all the time. Validators are simpler and are added through `->check()`.

Defaults are automatic, and can be specified with a final arg to the options.

Expected arguments and required arguments are now accessed through a pointer to option.

Option now can be checked as a bool to see if the argument was passed.

Errors have better organisation.
2017-02-06 20:52:12 -05:00
Henry Fredrick Schreiner
a12a94c4c1 Separate files, plus way to combine 2017-02-06 09:54:41 -05:00