1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-02 13:43:52 +00:00

61 Commits

Author SHA1 Message Date
Philip Top
6c645b55a1 Add better enum support in the library (#233)
* add some notes about enums in the readme

add some helpers tests for enumerations

Add better enum support in the library

* fix Helpers Test for Enums
2019-02-20 22:57:37 +01:00
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
598046c397 Add unnamed subcommand (#216)
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.
2019-02-06 10:27:06 +01:00
Henry Fredrick Schreiner
6bd31c392d Fixing #168 2018-10-21 12:16:34 +02:00
Henry Fredrick Schreiner
e04498c94d Better help-all, prints more info, better spacing 2018-09-06 20:47:52 +02:00
Henry Fredrick Schreiner
4ddab334af Adding a error if json requested but missing 2018-06-28 13:05:20 +02:00
Henry Fredrick Schreiner
9943c0300f Adding bits of touchup, one new example for validators 2018-06-27 18:58:16 +02:00
Henry Fredrick Schreiner
2ae5598d95 Adding example with json config 2018-06-25 19:25:19 +02:00
Henry Fredrick Schreiner
b2e471ac4d Removing set_ for failure_message, footer, name, and callback 2018-06-18 15:13:59 +02:00
Henry Schreiner
bf2bc39c30 Rename to set_* on options and add return this
Now use type_name and type_size instead of set_custom_option.
2018-06-18 15:13:59 +02:00
Henry Fredrick Schreiner
d46c2c5727 Adding Config class 2018-05-09 16:08:32 +02:00
Henry Fredrick Schreiner
0d9a33d4ca Adding access to current formatter, using shared pointer to link all formatters 2018-05-09 16:08:32 +02:00
Henry Fredrick Schreiner
101d847c29 Use filter fn to simplify, sort includes 2018-05-06 18:36:33 +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
8f1215873c Allow -- to end unlimited options 2018-04-09 13:55:53 +02:00
Henry Fredrick Schreiner
232c792bae Adding examples to tests 2018-04-09 13:19:23 +02:00
Henry Fredrick Schreiner
5d9a5636bc Removing enum conversion 2018-04-07 06:58:21 +02:00
Henry Fredrick Schreiner
d2d4f07fd4 Dropping CLI_ in favor of CLI11_ everywhere 2018-04-04 18:29:32 +02:00
Henry Fredrick Schreiner
29b36857fd Fixing format of new example 2017-11-27 17:41:04 -05:00
Henry Fredrick Schreiner
b2376bd359 Adding example of completely custom help option 2017-11-27 16:50:48 -05:00
Henry Fredrick Schreiner
3d309dc0be Adding fail if required values missing 2017-11-25 19:03:03 -05:00
Henry Fredrick Schreiner
9b5867869d Refactoring default for options 2017-11-20 18:07:13 -05:00
Henry Fredrick Schreiner
0395467d48 Making RuntimeError a ParseError 2017-11-20 12:31:14 -05:00
Henry Fredrick Schreiner
0bca8fdd30 Adding docs, fixing examples for usage 2017-11-20 12:31:14 -05:00
Henry Fredrick Schreiner
59b6de2550 Dropping missing(), now implemented correctly 2017-11-19 15:19:20 -05:00
Henry Fredrick Schreiner
cb7c3ff85a Move to using remaining, drop return from parse 2017-11-19 15:19:20 -05:00
Henry Schreiner
3de7832c3d
Remove C++14 comment, since it is not true atm
[skip ci]
2017-10-27 15:55:10 -04:00
Henry Fredrick Schreiner
8cdf1c8651 Style updates 2017-10-27 15:52:41 -04:00
Henry Fredrick Schreiner
6d26440b6e Clean up and shared ptr 2017-10-27 15:52:41 -04:00
Henry Fredrick Schreiner
8e59df0590 Original version from @lczech 2017-10-27 15:52:41 -04:00
Henry Fredrick Schreiner
0908251c76 Adding CLI11_PARSE macro 2017-09-06 05:51:12 -05:00
Henry Schreiner
54114d0948 Travis improvements and updates (#28)
* Adding check for style

* Adding reformats

* Fix syntax error in travis

* Support clang-format 3.9

* Adding clang-tidy check
2017-09-01 16:51:09 -04:00
Henry Fredrick Schreiner
3da480792b Adding enum example 2017-06-09 08:31:47 -04:00
Henry Schreiner
1c1a62224e Merge pull request #16 from CLIUtils/prefix_program
Prefix program support
2017-06-05 08:59:22 -04:00
Henry Fredrick Schreiner
04268dac5a Minor cleanup to inter_arg_order 2017-06-05 08:37:23 -04:00
Henry Fredrick Schreiner
36ac4c1cc7 Adding example program for prefix program 2017-06-04 14:13:02 -04:00
Henry Fredrick Schreiner
1816330629 clang-formatting new source 2017-06-04 13:23:01 -04:00
Henry Fredrick Schreiner
11df3becfb Show parse order is preserved 2017-06-04 13:19:10 -04:00
Henry Fredrick Schreiner
100db357db Better example names 2017-06-04 11:29:52 -04:00
Henry Fredrick Schreiner
774bb5d05f Cleaner IDE folder structure 2017-06-02 09:03:38 -04:00
Henry Fredrick Schreiner
27f718125d Reformat with clang-format 2017-05-31 12:03:05 -04:00
Henry Fredrick Schreiner
c94aa406a6 Fixing namespace endings 2017-05-31 10:50:16 -04:00
Henry Fredrick Schreiner
44f43bd621 Adding clang tidy details 2017-05-31 10:44:09 -04:00
Henry Fredrick Schreiner
ee9219e0f8 Adding warnings and fixes, CLI11 target, support for VIM Syntastic 2017-03-27 13:53:57 -04:00
Henry Fredrick Schreiner
81f58c130a Fixing for IDE builds 2017-02-24 13:16:11 -05:00
Henry Fredrick Schreiner
983529a379 Adding subcom chaining (untested) 2017-02-20 12:08:21 -05:00
Henry Fredrick Schreiner
0f47620704 Removing run, clean up App structure 2017-02-13 08:42:15 -05:00
Henry Fredrick Schreiner
f4ba69223a Adding example for group and documentation 2017-02-11 10:03:05 -05:00