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

203 Commits

Author SHA1 Message Date
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
Marcus Brinkmann
db8ccf8afe Add const to argv argument of App::parse 2018-05-15 23:02:11 +02:00
Henry Fredrick Schreiner
e8b45de6ec Dropping a few lines 2018-05-10 18:49:38 +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
aac957507d Adding short_circuit to simplify parse procedure 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
88521b58f8 Adding a few tools to make manual validation easier 2018-05-04 15:55:24 +02:00
Henry Fredrick Schreiner
b80a0046fc GCC 4.7 can't tell a function from a string. Separated and fixed. 2018-05-03 18:30:59 +02:00
Henry Fredrick Schreiner
e7483afc41 Adding functional form of Type printout 2018-05-03 18:30:59 +02:00
Henry Schreiner
3917b1ab59
Sets by reference (#114)
* Adding const & access to sets

* Adding set reference option

* One missing line in coverage
2018-05-02 16:06:20 +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 Schreiner
b23275358a
Adding nicer header with LICENSE to single file version (#107)
* Adding nicer header with LICENSE to single file version

* Adding badges

* Clean up sh files

* Adding explicit in a few places

* More fixes from codacy
2018-04-13 14:07:32 +02:00
Lucas Czech
fc8eef3ae1 Keep original group order 2018-04-12 08:58:20 +02:00
Henry Fredrick Schreiner
c63288a91c Adding set_name and support for names to app 2018-04-11 22:18:22 +02:00
Henry Fredrick Schreiner
8e650c3873 Adding two required functions 2018-04-11 22:18:22 +02:00
Henry Fredrick Schreiner
9d41ddef83 Better mixing of positionals and unlimited options (#102) 2018-04-10 14:18:00 +02:00
Henry Fredrick Schreiner
8f1215873c Allow -- to end unlimited options 2018-04-09 13:55:53 +02:00
Stéphane Del Pino
4f6bbba317 Added missing virtual App::~App() (#98)
* Added missing virtual App::~App()

* fixed destructor style
2018-04-08 13:40:30 +02:00
Henry Fredrick Schreiner
447bda047f Adding size instead of expected + unchangable 2018-04-04 20:31:52 +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
bea833bbcd Adding and fixing more warnings 2018-03-26 11:48:23 +02:00
Henry Fredrick Schreiner
aa7c01ff5d Adding test and fix for #90 2018-03-25 17:56:46 +02:00
Anton
15f9a4f128 Add check if lexical_cast fully consumed input on integer conversion (#68)
* Split signed/unsigned parsing, add check if input is fully consumed, improve tests

* Fix complex numbers parsing

* Add check if input is fully consumed for double lexical_cast, improve tests

* Add non-num non-string lexical_cast for parsable types, add tests

* Style fixes from check-style

* Some small fixes for corner case tests
2018-03-09 13:01:19 +01:00
Jonas Nilsson
d465414455 Issue 70 (#80)
* Support for unused (un-defined) extras in ini-files.

* Fixed extra options in INI files to be closer to that of extra CLI arguments.

* Fixed formatting.

* Minor formatting fix.

* Fixing style

* Fixed INHERITABLE and other minor things.
2018-02-16 13:58:47 +01:00
recklesstodd
4e62a0a980 #76 | Remove "is required" string passed as an argument to RequiredError() constructor to avoid double printing.
The string "is required" is already added internally by RequiredError() class.
2018-02-12 07:27:51 +01:00
Henry Fredrick Schreiner
9e183646c5 A few fixes for failing tests 2017-12-23 19:18:19 -06:00
Henry Fredrick Schreiner
78ed995685 Add multiline ini comments 2017-12-23 14:17:38 -06:00
Henry Fredrick Schreiner
b10b9c8291 Run clang-format script 2017-12-23 09:47:52 -06:00
Jonas Nilsson
987ea1f64e Minor changes. 2017-12-21 08:55:24 +01:00
Jonas Nilsson
97b1def525 Added basic support for writing description to config string. 2017-12-18 11:47:18 +01:00
Henry Fredrick Schreiner
67cd2e6345 Adding get_parent() 2017-12-12 15:19:32 -06:00
Henry Fredrick Schreiner
91a8698c90 Fixing Travis builds 2017-11-30 14:51:22 -05:00
Henry Fredrick Schreiner
14f1c9b88a Using non-configurable to keep config and help out of config print 2017-11-30 09:52:01 -05:00
Henry Fredrick Schreiner
68207bdcc1 Removing non-configurable from config_to_str 2017-11-30 09:34:45 -05:00
Henry Fredrick Schreiner
45520a0ec4 Fix error with if(string) 2017-11-28 21:28:37 -05:00
Henry Fredrick Schreiner
a6c17a4a9d Rename add_config to set_config 2017-11-28 21:28:37 -05:00
Henry Fredrick Schreiner
4dac11c025 Finishing addition of ->configurable() 2017-11-28 21:28:37 -05:00
Henry Fredrick Schreiner
c1fb53f00d Moving error messages definitions to Error.h 2017-11-28 21:28:37 -05:00
Henry Fredrick Schreiner
954c93d585 Using more powerful policy system, to allow git-like -m options 2017-11-28 15:24:37 -05:00
Henry Fredrick Schreiner
958b0e511e Fixing -N values min count throw 2017-11-26 15:11:48 -05:00
Henry Fredrick Schreiner
6638549adb Adding check for -2 opts 2017-11-26 15:11:48 -05:00
Henry Fredrick Schreiner
1b3a4b63c8 Combining parse functions for short and long 2017-11-26 15:11:48 -05:00
Henry Fredrick Schreiner
133c7d5075 Allow suggestions for number of args 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
f6c9ce6109 Moving code to Error, better ArgumentMismatch throwing 2017-11-26 15:11:48 -05:00
Henry Fredrick Schreiner
4d5bff2393 Adding ArgumentMismatch, changable improvement 2017-11-26 15:11:48 -05:00
Henry Fredrick Schreiner
afd4e32809 Dropping unneeded check 2017-11-26 06:47:50 -05:00
Henry Fredrick Schreiner
3d309dc0be Adding fail if required values missing 2017-11-25 19:03:03 -05:00