Commit Graph

293 Commits

Author SHA1 Message Date
Henry Schreiner
2ea663bcc7 style: add remarklint 2021-07-19 15:23:35 -04:00
Henry Schreiner
4698131216 style: add mdlint 2021-07-19 15:23:35 -04:00
Henry Schreiner
f27f6f2070 docs: fix some Codacity recommendations (#622) 2021-07-17 15:05:18 -04:00
Henry Schreiner
b4f6be31c1 chore: codacity (#621)
* docs: fix some Codacity recommendations

* chore: update copyright year

* style: more codacity fixes

* style: fix issues reported by Codacity
2021-07-16 17:41:46 -04:00
Henry Schreiner
030f9d6789 docs: include conda badge 2021-07-15 01:14:17 -04:00
Henry Schreiner
dfc656c465 docs: link for 2.0 post 2021-07-14 16:46:06 -04:00
Henry Schreiner
975e58b3ed docs: add more notes about releases (#617)
* docs: add more notes about releases

* docs: update badges

* ci: fix file upload
2021-07-14 13:29:10 -04:00
Henry Schreiner
656dda1695 chore: bump version to 2.0.0 2021-07-13 21:08:59 -04:00
Henry Schreiner
c7af1a688c 📝 Add @alexdewar as a contributor 2021-07-11 20:11:03 -04:00
Henry Schreiner
fb3aa96640 📝 Add @AnticliMaxtic as a contributor 2021-07-11 20:11:03 -04:00
Henry Schreiner
addafa5bdf 📝 Add @dryleev as a contributor 2021-07-11 20:11:03 -04:00
Henry Schreiner
bb7c96a09e 📝 Add @paddy-hack as a contributor 2021-07-11 20:11:03 -04:00
Philip Top
75f2d7747f fix: allow quotes to specify a program name with spaces on the single string parse operation. (#605) 2021-06-21 12:16:09 -04:00
Philip Top
25cca2dcb9 docs: add custom parse example (#603) 2021-06-17 17:44:19 -04:00
Philip Top
2fa8cae9e8 feat: add changeable help message string to version (#601)
add an optional help message string to the version_add flag if desired to override
2021-06-17 12:04:55 -04:00
Philip Top
ee2b725019 fix: a few issues with config file output (#599)
* fix a few issues with config file output, namely an ability to print a default empty string, and to adjust the quote characters used when quoting strings or characters.

* fix formatting

* Update CMakeLists.txt

* Update README.md
2021-06-16 21:58:03 -04:00
Henry Schreiner
c4f1fc8ea7 refactor!: remove add_complex (#600) 2021-06-16 20:33:22 -04:00
Henry Schreiner
6ca5df8722 docs: fix missing chars in README 2021-06-15 22:43:22 -04:00
Henry Schreiner
97f5460fbe docs: update changelog (#564) 2021-04-04 01:58:15 -04:00
Philip Top
f0461525bb feat: add a silent option to subcommands (#529)
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2020-12-28 11:00:18 -05:00
Philip Top
31be35b241 feat: add a validator that checks for specific types conversion (#526) 2020-12-28 10:58:57 -05:00
allcontributors[bot]
3bf24c5164 docs: add dbarowy as a contributor (#534)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-11-03 23:53:09 -05:00
allcontributors[bot]
a9e8c56499 docs: add dfleury2 as a contributor (#532)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-10-28 12:34:47 -04:00
Philip Top
438eabe5f8 feat: add char type (#449)
add a test for char options

add support for char types to the lexical cast, to allow single character types that make sense, add a integral_conversion operations to simplify the conversions from string to integers and allow discrimination in a few cases with enumerations.
2020-09-30 17:58:39 -04:00
allcontributors[bot]
a1dd4d708d docs: add ZeeD26 as a contributor (#519)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-09-30 09:23:35 -04:00
Henry Schreiner
c1666528ef 📝 Add @jakoblover as a contributor 2020-09-09 21:44:59 -04:00
Henry Schreiner
08b03fdeb8 📝 Add @ferdymercury as a contributor 2020-09-09 21:44:41 -04:00
Henry Schreiner
635ffe716b 📝 Add @mbhall88 as a contributor 2020-09-09 21:44:28 -04:00
allcontributors[bot]
246d9092c9 docs: add rcurtin as a contributor (#511)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-09-09 14:12:15 -04:00
Philip Top
6aa58d5828 Add an ability to deal handle multiple config files (#494) 2020-09-03 19:42:35 -04:00
Jakob Lover
11141525ac Customize text between option name and description (#497)
* Added an option to change the text between definition and description

* Added test and readme

* Update Option.hpp

Fixed shadowing issue

* style: fix formatting

Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
2020-09-03 19:40:42 -04:00
ferdymercury
82c71bd7ee Clarify inclusion of CLI11 via CMake (#499)
Installing is not optional if you want find_package to work
Specify other options when using shared folders (system-wide) rather than local ones.
Fixes https://github.com/CLIUtils/CLI11/issues/498
2020-08-13 17:58:41 -04:00
Philip Top
34bd80971b allow the use of allow_extra_args(false) to specify only a single argument at a time with a container output. (#484) 2020-07-24 00:02:33 -04:00
allcontributors[bot]
a2bf5cdea2 docs: add samhocevar as a contributor (#479)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-06-14 11:37:34 -04:00
Henry Schreiner
5925f94b69 Update Azure 2020-06-01 23:01:26 -04:00
Henry Schreiner
3bea1de2d5 📝 Add @certik as a contributor 2020-06-01 21:26:41 -04:00
Philip Top
b9a2f320b9 Add windows latest and gcc 8 builds to azure (#446)
* add windows latest and gcc 8 builds to azure

* try adding pr trigger

* try adding something specific for gcc 8

* use interface instead of public

* try C++17 on clang 8

* update the readme with some additional notes about gcc 8

* fix some incorrect doxygen comment formatting

* try using the glibcxx_release value

* debug some code paths to make sure macros are working

* Update readme and fix formatting.

* update formatting for Validators
2020-04-02 01:55:20 -04:00
Philip Top
27da2f952e Container options (#423)
* Update options.md book chapter and the readme to better reflect current usage and the modifications to the add_options templates.

add support in add_option for wrapper types, such as std::optional, boost::optional or other types with a value_type trait.  Add support for generalized containers beyond vector,  add support for nested tuples and vectors, and complex numbers directly in add_option.  This includes several new type traits and object categories.

Upgrade the google test version to better support templated tests.

add support for vector argument separator `%%`

* update formatting to match recent changes

* Apply suggestions from code review

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2020-03-22 14:06:34 -04:00
Philip Top
f346f29802 Config short (#443)
* add a get_single_name function for options, and allow short names to be used for configuration output.

* add config input to handle short and positional options

* add some tests about short options and positional options in config files

* allow use of envname_ in config files

* update doc book and readme with fixes

* formatting update

* some formatting updates

* add some notes on the config file generation

* just try modifying a comment
2020-03-22 13:58:46 -04:00
Philip Top
967bfe0e02 Set the default configuration file output as TOML (#435)
* Set the default configuration file output as TOML

* update formatting
2020-03-06 00:11:59 -05:00
Henry Schreiner
ba68040e92 📝 Add @geir-t as a contributor 2020-02-17 14:03:09 +00:00
Henry Schreiner
42fd0434bb 📝 Add @jsoref as a contributor 2020-02-17 14:03:09 +00:00
Christoph Bachhuber
ffe5b29e1f Add cstdint and std::prefix to its symbols (#409)
* Add cstdint and std::prefix to its symbols

* Use int64_t in std::
2020-01-21 18:24:40 -06:00
Henry Schreiner
828e09e55c Add updated wandbox link 2020-01-20 21:44:44 -06:00
Henry Schreiner
dd0d8e4fe7 Bump version to 1.9.0 (#408)
* Bump version to 1.9.0

* Include CMake mention
2020-01-19 17:00:53 -06:00
allcontributors[bot]
93c90d1d93 docs: add jgerityneurala as a contributor (#406)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]
2020-01-15 20:59:22 -05:00
Philip Top
e0c882ae3b Address issue #402 (#404)
* fix some typos in the book and clarify fallthrough on subcommands in the readme

* remove trailing whitespace
2020-01-15 20:38:04 -05:00
allcontributors[bot]
602df7581b docs: add KOLANICH as a contributor (#401)
* docs: update README.md

* docs: update .all-contributorsrc
2020-01-13 10:40:59 -05:00
allcontributors[bot]
a609605db5 docs: add slurps-mad-rips as a contributor (#395)
* docs: update README.md

* docs: update .all-contributorsrc
2020-01-09 09:54:32 -05:00
Henry Schreiner
59052a6b27 Update changelog (#383)
* Update changelog

[skip ci]

* Use code for maintainers instead

* Generate file with GitHub Actions

* Apply suggestions from code review

Co-Authored-By: Philip Top <phlptp@gmail.com>

* Adding default val and combine one line

Co-authored-by: Philip Top <top1@llnl.gov>
2020-01-02 17:38:44 -05:00