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 Schreiner
b4910df3d7
Move to using literals in testing ( #213 )
2019-02-01 11:32: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
Henry Fredrick Schreiner
85aa0e7813
Dropping last (required) usages of clear
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 Schreiner
76f1b7bdf2
Rename inijoin to ini_join ( #137 )
2018-06-23 21:48:20 +02:00
Henry Fredrick Schreiner
d46c2c5727
Adding Config class
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 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
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
97b1def525
Added basic support for writing description to config string.
2017-12-18 11:47:18 +01: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
0a35db8f00
Dropping the error if a bool flag is set multiple times
2017-11-18 09:28:04 -05:00
Henry Fredrick Schreiner
adbd2aa725
Fixes based on #30 by @infinity0n3
2017-09-10 15:29:23 -04:00
Henry Fredrick Schreiner
27f718125d
Reformat with clang-format
2017-05-31 12:03:05 -04:00
Henry Fredrick Schreiner
101c926dac
Adding tidy cleanups (modernize)
2017-05-31 07:38:22 -04:00
Henry Fredrick Schreiner
f88aa33908
Fix a few errors and warnings with tests
2017-03-30 16:36:05 -04:00
Henry Schreiner
ae5bf0ce62
Adding =false when printing config with defaults
2017-03-30 15:49:40 -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
04be61b3a1
Adding corrected output for inifile
2017-03-23 12:42:15 -04:00
Henry Fredrick Schreiner
4d61a4530c
Support for printing subcommands
2017-03-23 09:19:28 -04:00
Henry Fredrick Schreiner
98cdc6eb09
Adding output and tests for ini vectors and flags
2017-03-22 16:07:38 -04:00
Henry Fredrick Schreiner
051841f21c
More tests
2017-03-17 14:01:22 -04:00
Henry Fredrick Schreiner
4763c02926
More ini tests
2017-03-17 13:22:49 -04:00
Henry Fredrick Schreiner
ead1ff0565
Adding more ini tests, fix extra print
2017-03-17 13:03:39 -04:00
Henry Fredrick Schreiner
a3522c1ddf
Fix and add cov for subcom ini parser
2017-03-17 12:04:22 -04:00
Henry Fredrick Schreiner
194284c24b
Adding remove_option check on config
2017-03-16 22:10:11 -04:00
Henry Fredrick Schreiner
0ca8a43ebd
Better ini config behavour with one quote
2017-03-15 08:29:26 -04:00
Henry Fredrick Schreiner
2c837f9b06
Bugfix: Single line now counts as a flag in INI
2017-03-09 08:41:22 -05:00
Henry Fredrick Schreiner
3e8502bf43
Added OptionNotFound, correct throw on failed run
2017-03-08 09:50:15 -05:00
Henry Fredrick Schreiner
a9c564c38a
FileError for INI
2017-03-08 09:42:56 -05:00
Henry Fredrick Schreiner
ee3f5a73c9
Ini support for flags
2017-03-03 17:51:08 -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
b4b456f594
Adding ini support for spaces filtering and quotes
2017-02-17 21:23:23 -05:00
Henry Fredrick Schreiner
1f510725e5
Remove flags from inifile
2017-02-14 12:21:11 -05:00
Henry Fredrick Schreiner
4e69e9794d
Adding ini print and simple tests
2017-02-13 18:37:17 -05:00
Henry Fredrick Schreiner
0c1aa2abc3
Nicer, more compliant syntax in test
2017-02-13 12:41:08 -05:00
Henry Fredrick Schreiner
f071f91258
Adding tests for inis
2017-02-13 12:19:49 -05:00
Henry Fredrick Schreiner
3a9faa51f7
Refactored _parse, only called once now and has ini test
2017-02-13 09:55:02 -05:00
Henry Fredrick Schreiner
77071fdb95
Adding tempfile helper
2017-02-13 08:59:53 -05:00
Henry Fredrick Schreiner
cf2a212f01
Fix caps on name for unix systems
2017-02-11 10:07:23 -05:00