Henry Fredrick Schreiner
aa7c01ff5d
Adding test and fix for #90
2018-03-25 17:56:46 +02:00
Henry Schreiner
446524687a
Adding potential fix for a warning ( #85 )
2018-03-10 12:40:57 +01:00
Henry Fredrick Schreiner
0aaf52a6fc
Preparing version 1.4.0
2018-03-10 09:53:04 +01:00
Henry Schreiner
79a1847605
Overflow ( #84 )
...
* Overflowing an integer conversion now results in a conversion failure
* CMake improvements for VERSION and inital packing support
* Fix for recent addition of overflow check
* Conan file now gets version from Version.hpp file too
2018-03-10 09:50:25 +01: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
Henry Schreiner
5186158442
Rename requires to needs ( #82 )
...
* Adding fix for #75 , rename requires to needs
* Removing check for install commands (should still be run in subproject)
2018-03-08 11:48:40 +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
Lucas Czech
7868dc9f6c
Add path exists validator.
2018-01-07 22:35:01 +01:00
Lucas Czech
378eb3406c
Fix space in help output.
2018-01-07 17:26:53 +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
437dbab140
Fix style
2017-12-01 07:34:52 -05:00
Henry Fredrick Schreiner
fd09c12e3b
Adding version macro, preparing for release
2017-12-01 07:23:21 -05:00
Henry Fredrick Schreiner
c5e9ce33bd
Removing unneeded error when cross-linking to older stdlib
2017-11-30 16:29:30 -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
d6b983a2a7
Adding back short-cuts
2017-11-28 15:24: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
b010775051
Fix ArgumentMismatch missing public (makes it hard to catch)
2017-11-27 17:24:08 -05:00
Henry Fredrick Schreiner
fc69345f2f
Improve one more message
2017-11-26 22:40:40 -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 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
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
Henry Fredrick Schreiner
44de4de118
Adding test, fixing option name to single name in message
2017-11-24 21:11:28 -05:00
Henry Fredrick Schreiner
85857d99e1
Return string for error message in validators
2017-11-24 21:11:28 -05:00
Henry Fredrick Schreiner
715573359e
Using nicer format for transform
2017-11-24 21:11:28 -05:00
Henry Fredrick Schreiner
038eafed29
Adding test and keeping validator API similar
2017-11-24 21:11:28 -05:00
Henry Fredrick Schreiner
3006f82bf6
Making validators run before and with a reference
2017-11-24 21:11:28 -05:00
Henry Fredrick Schreiner
c6fd8f4d83
A few warning fixes
2017-11-22 22:41:14 -05:00
Henry Fredrick Schreiner
1286a1226e
Nicer error messages
2017-11-22 22:41:14 -05:00
Henry Fredrick Schreiner
a958ffece2
Dropping name from simple print, better seperation for Errors
...
Some error codes are renamed
2017-11-22 22:41:14 -05:00
Henry Schreiner
1735306815
Typo error fix
2017-11-22 22:39:16 -05:00
Henry Fredrick Schreiner
b45917e3e5
Dropping ERROR in simple printout
2017-11-22 16:55:48 -05:00