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

46 Commits

Author SHA1 Message Date
Henry Schreiner
17d05b000c
Adding map support to IsMember (#228)
* Adding first draft of mapping

* IsMember now supports maps

* Adding example, better Val combs, and cleanup

* Reversing order of map, adding pair support

* Check/Transform suppport for Validators

* Adding enum tools from @phlptp, more tests
2019-02-20 17:17:51 +01:00
Henry Schreiner
c9123811d1
CLI::IsMember (#222)
* Adding first draft of Sets

Use IsMember now

Using IsMember as backend for Set

Non-const validator backend

Move set tests to set

Clearer inits

* Drop shortcut

Tighten up classes a bit for MSVC

Check with GCC 4.8 too

* Simpler templates, but more of them

Dropping more type safety for older compilers

Shortcut string set

* Adding shortcut init

Making g++ 4.7 docker image happy

Fix Clang tidy issue with last commit

Adding one more shortcut, adding a couple of tests

* Dropping dual pointer versions of code

* Smarter shortcut syntax

* Adding slighly faster choices

* Cleanup to make InMember simpler

* Drop choices for now, adding some tests

* ValidationError is now always the error from a validator

* Support for other types of initializer lists, including enums

* Factor out type utilities, single version of IsMember code

* Adding a few tests for #224

* Minor cleanup for Validation Error

* Adding tests, moved deprecated tests

* Docs updates
2019-02-19 09:56:02 +01:00
Philip Top
c8bd97156b click-style boolean flags (#219)
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.
2019-02-09 23:51:38 +01:00
Henry Fredrick Schreiner
2f551e2ef6 Fix for GCC 8 warning 2019-01-25 09:21:47 +01:00
ncihnegn
9cfa0f44a0 Add quotes to values containing spaces (#198)
* Add test case for INI output of defaulted options

* Add quotes to values with spaces

* Fixing formatting

* Only fix quote strings, not vectors
2019-01-19 12:25:00 +01:00
Philip Top
663d93c792 Clear up Wshadow warnings from gcc 4.9 (#191)
* Clear up Wshadow warnings from gcc 4.9.  Most of these were local variable names with the same name as a member function.
Also a few spelling fixes and adding some std::move around some of the arguments when appropriate.

* Touchup
2019-01-13 09:12:48 +01:00
Henry Schreiner
f932b51374
Touchupwin (#189)
* Move lambda funtion to real function

* Fix some warnings when compiling in LLVM

* Adding one test back in

* Adding details to changelog
2019-01-11 11:58:00 +01:00
Philip Top
ce6dc0723e add options to handle windows style command line options (#187)
* add some fields and functions for windows like options
add test cases for windows options and refactor for additional string functions

* try to fix code coverage to 100% again.  add some additional documentation and a few additional test cases to verify documentation

* remove some extra brackets
2019-01-10 23:07:17 +01:00
Philip Top
30c2e327d1 Add single string parsing (#186)
* add Tests and ability to handle program file inclusion in the single string.

add the ability to deal with a single string in the parse command and handle quoted string appropriately

* Add extra test cases for full coverage, clear up escape quote sequencing and handling of extra spaces
2019-01-06 10:30:49 +01:00
Philip Top
a83109002c Add ignore underscore (#185)
* add ignore_underscore test cases and options to app

* add ignore_underscore for add_sets and some more tests for the sets and subcommands

* add some documentation lines and some failing tests

* update readme with ignore_underscore option

* remove failing tests from known issue

* remove empty line for code coverage
2019-01-03 09:22:09 +01:00
Henry Fredrick Schreiner
e04498c94d Better help-all, prints more info, better spacing 2018-09-06 20:47:52 +02:00
Henry Fredrick Schreiner
101d847c29 Use filter fn to simplify, sort includes 2018-05-06 18:36:33 +02: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
78ed995685 Add multiline ini comments 2017-12-23 14:17:38 -06:00
Henry Fredrick Schreiner
3e651e3b7e Moved more string processing to Error 2017-11-26 15:11:48 -05:00
Henry Fredrick Schreiner
94b3355b9a Adding more detail to error messages 2017-11-19 15:18:48 -05:00
Henry Fredrick Schreiner
79aaa8b8d7 Adding tidy suggestions, mostly empty() fixes 2017-10-27 15:52:41 -04:00
Henry Fredrick Schreiner
916cde58cf BSD licence, preparing for 1.0 release 2017-06-01 09:23:04 -04:00
Henry Fredrick Schreiner
27f718125d Reformat with clang-format 2017-05-31 12:03:05 -04:00
Henry Fredrick Schreiner
1ee22ec9ff Using empty instead of 0 size 2017-05-31 11:02:35 -04:00
Henry Fredrick Schreiner
60934c8a27 Fixing include order 2017-05-31 10:59:25 -04:00
Henry Fredrick Schreiner
c94aa406a6 Fixing namespace endings 2017-05-31 10:50:16 -04:00
Henry Fredrick Schreiner
101c926dac Adding tidy cleanups (modernize) 2017-05-31 07:38:22 -04:00
Henry Fredrick Schreiner
d697cb6d85 Using clang-tidy to modernize cast usage (from GooFit) 2017-05-30 21:53:53 -04:00
Henry Fredrick Schreiner
239d3b1c31 Fixes for compiler warnings with max warnings on Xcode 2017-04-23 13:57:01 -04:00
Henry Schreiner
1e627bfcf2 Include missing inlines to allow linking 2017-03-31 15:26:30 -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
0ca8a43ebd Better ini config behavour with one quote 2017-03-15 08:29:26 -04:00
Henry Fredrick Schreiner
bdf3993d09 Adding test for coverage, fixed bug in uncovered code 2017-03-09 09:37:16 -05:00
Henry Fredrick Schreiner
f203f4c122 Fixing windows issue 2017-03-03 21:22:10 -05:00
Henry Fredrick Schreiner
37f17fc19a Adding subcommand vectors and subsections 2017-03-03 17:25:27 -05:00
Henry Fredrick Schreiner
96250a5efb Added comments for ini files 2017-03-03 12:13:50 -05:00
Henry Fredrick Schreiner
7856de43ca Broken tests only because adding new desired behavior 2017-03-01 16:01:29 -05:00
Henry Fredrick Schreiner
196012a9f7 Adding (untested) ignore case abilities 2017-02-20 13:22:42 -05:00
Henry Fredrick Schreiner
64e39c2515 Adding corrected local settings 2017-02-20 12:10:00 -05:00
Henry Fredrick Schreiner
983529a379 Adding subcom chaining (untested) 2017-02-20 12:08:21 -05:00
Henry Fredrick Schreiner
8725de6706 Fixes to enable windows compat 2017-02-19 15:08:09 -05:00
Henry Fredrick Schreiner
b4b456f594 Adding ini support for spaces filtering and quotes 2017-02-17 21:23:23 -05: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
c71ef09305 Fix for missing newline without discription 2017-02-14 16:46:26 -05:00
Henry Fredrick Schreiner
905c23bcd0 Change license 2017-02-12 13:01:43 -05:00
Henry Fredrick Schreiner
92957602ec Adding algorithm includes 2017-02-11 10:27:08 -05:00
Henry Fredrick Schreiner
aac712b754 Adding ini parser, cleanup test CMake 2017-02-09 17:18:24 -05:00
Henry Fredrick Schreiner
a12a94c4c1 Separate files, plus way to combine 2017-02-06 09:54:41 -05:00