1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-30 12:43:52 +00:00

45 Commits

Author SHA1 Message Date
Paul le Roux
80420d62e2 Make ConfigVersion arch independent (#254)
CLI11 is header only and the architecture shouldn't matter. The arch
dependence has the potential to cause find_package to fail incorrectly.
2019-03-22 17:57:46 -04:00
Philip Top
546d5ec237 clear up some additional Wshadow warnings on older compilers (#232)
* clear up some additional Wshadow warnings on older compilers

* clear up a few more Wshadow warnings in option

* add extra test for delimiter in add_option_function call.

* clear up a warning from the test
2019-02-20 18:52:07 +01:00
Henry Schreiner
5e0bb1c8da
Fix Boost CMake (#226)
* Fixing typos in FindBoost

* Minimum required Boost is actually 1.61
2019-02-19 14:08:36 +01:00
Aleksey Mikhaylov
0387f35ec8 Prefer BUILD_TESTING over CLI11_TESTING if defined 2018-12-18 19:47:38 +01:00
Henry Fredrick Schreiner
f16f3c97f0 Fixing use as a subproject for installing #156 2018-09-03 22:48:45 +02:00
Henry Schreiner
73411e1e38
Minor build system improvements (#154) 2018-08-01 11:36:13 +02:00
Henry Fredrick Schreiner
f3b00d94d1 Python 2.6 support, SINGLE_FILE no longer defaults to ON 2018-07-30 09:51:08 +02:00
Henry Fredrick Schreiner
e7dc4c23f7 Adding check for correct python version for search 2018-07-26 18:54:24 +02:00
Henry Fredrick Schreiner
98b31d788b Adding tests and deprecation messages 2018-06-18 15:13:59 +02:00
Henry Fredrick Schreiner
36cf13cec6 Hiding single file tests option if single file is off 2018-05-21 23:01:13 +02:00
Henry Fredrick Schreiner
89975e51e7 Updating coverage 2018-04-30 08:17:31 -04:00
Henry Schreiner
b957301c3a
Adding policy range (#110) 2018-04-25 18:14:00 -04:00
Henry Fredrick Schreiner
227eabec38 Slightly cleaner by using CMakeDependentOption 2018-04-05 14:02:32 +02:00
Henry Fredrick Schreiner
43ec307781 Better message about optional test, warning suppression 2018-04-04 18:29:32 +02:00
Henry Fredrick Schreiner
d2d4f07fd4 Dropping CLI_ in favor of CLI11_ everywhere 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
b4b7d991f6 Slighly cleaner usage with add_subdirectory 2018-03-10 14:18:18 +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
Henry Schreiner
f089255ad0
Adding support for conan.io (#83)
* Adding fix for #75, rename requires to needs

* Removing check for install commands (should still be run in subproject)

* Adding conan build

* Some small changes to CMake

* Adding nicer Travis code

* Adding package test, find works now
2018-03-09 08:30:22 +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
Doug Johnston
901b3c24f3 Add CMake install command for include files if CUR_PROJ is true 2018-02-15 08:03:10 +01:00
Henry Schreiner
37667f523d Adding simple flag callback (#33)
* Addind simple flag callback

* Give flag function a new name, old name only on C++14

* Fixing reference to destroyed function

* Better GCC 4.7 support, travis prepared for C++17 (not used yet)

* Updating documentation
2017-09-11 11:45:00 -04:00
Henry Schreiner
657b599b52 Cmake cleanup (#21)
* Fixes for #8, vars hidden and findPython used

* Adding compat with default python, better defaults
2017-06-05 11:22:09 -04:00
Henry Schreiner
0da8fa9411 Msvc warn fix (#20)
* Remove windows warning, use secure getenv

* Fix typo in last commit

* Fix typo in windows version

* Fix another typo in windows version

* Fixing error, dropping warn suppression
2017-06-05 10:21:55 -04:00
Henry Fredrick Schreiner
774bb5d05f Cleaner IDE folder structure 2017-06-02 09:03:38 -04:00
Henry Fredrick Schreiner
44f43bd621 Adding clang tidy details 2017-05-31 10:44:09 -04:00
Henry Fredrick Schreiner
1b2ebc420b Simpler check for MSVC 2017-03-27 16:10:15 -04:00
Henry Fredrick Schreiner
fe79eb5820 Trying to fix windows build 2017-03-27 16:05:37 -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 Schreiner
89ed072f39 Codecov (#5)
* Adding first try at coverage

* Fix for CMakeLists

* Fix for wrong shell

* Fixes to Coverage

* Fix for missing coverage

* Adding badge

* Using repo token

* Adding test files to coverage

* Fix typo

* Adding codecov

* Fix for code coverage

* Fix single file tests under CodeCov

* Seperating coverage steps

* Fix testrunner to be ctest

* Fix constant rebuilding of doxygen

* Adding coverage, tested locally

* Adding compiler version to gcov

* Fixing code coverage gcov download and use

* Adding Coverage build type with some fixes

* Better way of using gcc

* Adding coverage badge

* Removing tests from calcs
2017-03-07 16:17:30 -05:00
Henry Schreiner
27d120e7b8 Cleaner import 2017-03-07 13:32:39 -05:00
Henry Fredrick Schreiner
81f58c130a Fixing for IDE builds 2017-02-24 13:16:11 -05:00
Henry Fredrick Schreiner
4b07ef52d5 Fixes for Windows warnings 2017-02-20 14:14:11 -05:00
Henry Fredrick Schreiner
e60e5c2dc3 Trying to fix GoogleTest build 2017-02-19 15:35:06 -05:00
Henry Fredrick Schreiner
bde789e2d8 Hopefully changing googletest options 2017-02-19 15:29:04 -05:00
Henry Fredrick Schreiner
8725de6706 Fixes to enable windows compat 2017-02-19 15:08:09 -05:00
Henry Fredrick Schreiner
22612c512c Fixing warning add 2017-02-19 14:31:11 -05:00
Henry Fredrick Schreiner
26fa59b745 Build CLI11 when option is on but tests are not built 2017-02-14 12:32:15 -05:00
Henry Fredrick Schreiner
2b40b8cbd3 Removing automatic testing with single file, kept on travis 2017-02-14 12:26:07 -05:00
Henry Fredrick Schreiner
1bf66bc3e5 Moved to storing unique_ptr of Options, better support for --help 2017-02-07 14:00:03 -05:00
Henry Fredrick Schreiner
494a65f812 Dropping Make syntax, moving to pointers from combiners, structured errors.
This mostly is cleanup, with fewer alternative methods and more standard syntax, avoiding the use of the namespace all the time. Validators are simpler and are added through `->check()`.

Defaults are automatic, and can be specified with a final arg to the options.

Expected arguments and required arguments are now accessed through a pointer to option.

Option now can be checked as a bool to see if the argument was passed.

Errors have better organisation.
2017-02-06 20:52:12 -05:00
Henry Fredrick Schreiner
ee5678562f Adding tools to build with python 3.6 directly 2017-02-06 11:51:06 -05:00
Henry Fredrick Schreiner
5959ae456b spacing fix 2017-01-28 13:15:17 -05:00
Henry Fredrick Schreiner
3eac26e2e1 Adding DownloadProject to cmake 2017-01-27 09:40:45 -05:00
Henry Fredrick Schreiner
d070f32ed6 Adding cmake, tests 2017-01-26 16:48:30 -05:00