Philip Top
a86f7fbd5e
tests: add some extra tests from debugging ( #542 )
...
* add a test to verify std::optional<std::uint64_t> works correctly.
* adding some extra tests to help with debugging
2020-12-28 11:01:11 -05: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
Philip Top
28b35af5ea
Fix the test for cuda by updating the version number of a repo that is part of the test. ( #543 )
2020-11-25 14:41:18 -08: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
Dan Barowy
ff557589e3
docs: fix variable name. ( #533 )
2020-11-03 11:58:23 -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
D. Fleury
a7902531c9
fix: add multilines array support for TOML ( #528 )
...
* Adds multilines array support
* Update include/CLI/Config.hpp
Co-authored-by: David Fleury <david.fleury@expandium.com>
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2020-10-28 12:34:24 -04:00
Philip Top
69674dc91b
fix: help all was showing up in the required list error if requirement are not met. ( #530 )
2020-10-28 12:33:15 -04:00
djerius
e50a75f231
feat: create pkg-config file ( #523 )
2020-10-28 12:06:05 -04:00
Philip Top
89926dc820
feat: support for Atomic types in flags and options ( #520 )
2020-10-28 11:57:47 -04:00
Henry Schreiner
d621be0565
ci: label PRs when merged
2020-10-28 11:34:45 -04:00
Alex Dewar
97e5ebe490
fix: don't copy ConfigItems when iterating ( #521 )
...
Use a const reference to avoid unnecessary copies. Also constify the
argument to _parse_config.
2020-10-15 21:51:21 -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
Dominik Steinberger
d3b0b73118
Print input when validation fails ( #516 )
...
Co-authored-by: Dominik Steinberger <open-source-libraries@steinberger.io>
2020-09-30 08:57:16 -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
Ryan Curtin
26555f9ea2
Grammar fix. ( #510 )
2020-09-09 14:08:41 -04:00
Philip Top
6aa58d5828
Add an ability to deal handle multiple config files ( #494 )
2020-09-03 19:42:35 -04:00
Michael Hall
8ce1594eae
fix name of make make option opts function ( #509 )
2020-09-03 19:41:18 -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
Henry Schreiner
b21f2e1bbe
fix: left table column too long ( #504 )
2020-09-02 09:16:53 -04:00
Henry Schreiner
105399a620
fix: Boost test might fail - make explicit for now
2020-08-25 09:57:41 -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
Henry Schreiner
7cdd95e312
chore: update pre-commit and GHA
2020-07-27 22:11:23 -04:00
Henry Schreiner
99a8edcfcd
docs: update validator
2020-07-27 22:11:23 -04:00
Henry Schreiner
f1349f12e3
Bump to Version 1.9.1
2020-07-27 22:11:23 -04:00
Philip Top
102e201dc7
fix: a failing test case for toml string_vector processing ( #491 )
2020-07-27 22:10:18 -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
Henry Schreiner
73e94b22e7
ci: update pre-commit ( #488 )
...
Caching is now internal! Much nicer.
2020-07-21 12:51:03 -04:00
Henry Schreiner
2b059cbdbe
fix: add quotes ( #471 )
...
* fix: add quotes
* Update CMakeLists.txt
* Try 2
* fix: Support paths with spaces using @ZeeD26's suggestion
2020-06-20 10:21:41 -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
b270058493
doc: changelog
2020-06-14 11:36:41 -04:00
Henry Schreiner
9f27da026e
doc: changelog
...
[skip ci]
2020-06-14 11:35:04 -04:00
Sam Hocevar
2337bbf35d
Fix internal header include paths. ( #475 )
...
* Fix internal header include paths.
The extra leading "CLI/" part of include directives prevents the inclusion
of CLI.hpp from a relative directory without an extra -I or /I compiler
directive.
* Fix single header generation script.
Files included with "" should be relative to the header file location first.
2020-06-14 11:32:29 -04:00
Sam Hocevar
dccfb06d65
Fix default --version help message capitalisation. ( #476 )
...
The default help message for “--help” is capitalised, whereas the one
for “--version” was not:
-h,--help Print this help message and exit
-V,--version display program version information and exit
2020-06-14 11:13:54 -04:00
Henry Schreiner
5925f94b69
Update Azure
2020-06-01 23:01:26 -04:00
Henry Schreiner
f80a69de3b
Update changelog
2020-06-01 23:01:09 -04:00
Henry Schreiner
3bea1de2d5
📝 Add @certik as a contributor
2020-06-01 21:26:41 -04:00
Ondřej Čertík
5c35c182f6
Use e.get_name instead of dynamic_cast ( #467 )
...
* Use e.get_name instead of dynamic_cast
Also use std::static_pointer_cast instead of std::dynamic_pointer_cast
Fixes #466
* feat: Allow RTTI to be turned off
* ci: Fix CXX flags
* doc: Adding update to book
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
2020-06-01 21:24:57 -04:00
Christoph Bachhuber
611431ceb0
Simplify clang tidy config file ( #469 )
...
* Update submodule
* Treat all enabled clang-tidy warnings as errors
* Revert "Update submodule"
This reverts commit b455d1d0f97df5ca816058fd78bcca882ab7a761.
2020-06-01 15:29:36 -04:00
Henry Schreiner
50bfb5aa1d
ci: Update GTest to master ( #470 )
...
* ci: Update googletest to fix windows error
* chore: Minor updates to CI versions
2020-06-01 15:29:15 -04:00
Philip Top
41a9c294d0
Version add ( #452 )
...
* Add a dedicated version option to CLI11 to facilitate use of version flags, similar to help flags
* add some test for the version flag
* update errors and formatting
* clear up gcc 4.8 warnings
* add a few more tests
* fix compiler error
* fix a few comments, and change default version flag to only use "--version"
* remove `version` calls and tests
* formatting and add `std::string version()` back in.
2020-05-24 23:18:44 -04:00
Philip Top
fff3350254
fix issue with option defaults not propagating to option groups ( #450 )
2020-05-21 10:07:33 -04:00
Christoph Bachhuber
c426c43b90
Fix clang tidy ( #451 )
...
* Add already passing check
* Remove too modern clang-tidy-9 check
2020-05-21 10:06:52 -04:00
Philip Top
747544d7a0
try clang 10 ( #459 )
...
* try clang 10
* use helics-builder clang 10 image
* try new image
* try again
* try different flag addition
* try adding cpp20 to visual studio check
* try with the latest flag enabled for visual studio 2019
* try the correct c++ flag
* remove use of std::result_of
* format files
2020-05-21 10:05:32 -04:00
Philip Top
c439562abb
fix for the cmake_config tests ( #455 )
2020-04-21 22:21:10 -04:00