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

220 Commits

Author SHA1 Message Date
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
Henry Fredrick Schreiner
2c024401cc Minor touch up after #186 2019-01-06 10:46:12 +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 Schreiner
c3d8d4a2d0
Adding new parse layout (#178)
* Adding new parse layout

* Dropping shortcurcuit from help, since it has special override

* Refactor help call

* Dropping shortcurcuit since it is not needed now that help has custom behavoir

* Dropping MaxSubcommand error (cannot occur)
2019-01-02 22:16:42 +01:00
Henry Fredrick Schreiner
bd4dc91184 add extra test 2018-11-24 23:40:18 +02:00
Henry Schreiner
a78f5bcdcf
Dropping links if option removed (#179) 2018-11-13 17:12:48 +01:00
Henry Schreiner
b683f4ed96
Fix for spurious printout (#177) 2018-10-22 18:39:23 +02: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
9d6830e8d2 Adding more to documentation 2018-07-01 09:04:38 +02:00
Henry Fredrick Schreiner
b453aebab9 Fixing one warning, adding to CHANGELOG 2018-06-27 12:26:03 +02:00
Henry Fredrick Schreiner
85aa0e7813 Dropping last (required) usages of clear 2018-06-27 12:26:03 +02:00
Henry Fredrick Schreiner
bf4ad1d717 Fixing error in setting args after parsing (broken test fixed) 2018-06-27 12:26:03 +02:00
Henry Fredrick Schreiner
8635c4d0eb Dropping reset in favor of clear 2018-06-27 12:26:03 +02:00
Henry Fredrick Schreiner
98b31d788b Adding tests and deprecation messages 2018-06-18 15:13:59 +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
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