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

1060 Commits

Author SHA1 Message Date
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
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
c.bachhuber
7432ab264d Fix code style
Format
2020-03-23 09:42:08 -04:00
Christoph Bachhuber
a1ef417b8d Remove cpplint's build/c++11 check
Fix rebase
2020-03-23 09:42:08 -04:00
Christoph Bachhuber
e85eaecf85 Fix comment whitespace 2020-03-23 09:42:08 -04:00
Christoph Bachhuber
286cd0f0e2 Replace c type short by c++ type int16_t 2020-03-23 09:42:08 -04:00
Christoph Bachhuber
534792577d Do not lint chrono, thread, and regex 2020-03-23 09:42:08 -04:00
Christoph Bachhuber
35816a4eee Replace c type long long by c++ type int64_t 2020-03-23 09:42:08 -04:00
Christoph Bachhuber
0c8a391072 Use static_cast instead of c-style cast 2020-03-23 09:42:08 -04:00
Christoph Bachhuber
863541ff1c Add necessary includes 2020-03-23 09:42:08 -04:00
Christoph Bachhuber
3ab92ad454 Add copyright message 2020-03-23 09:42:08 -04:00
Christoph Bachhuber
5b28c1407e Add tests to cpplint checks 2020-03-23 09:42:08 -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
Christoph Bachhuber
d8a5bdc294
Add and fix cpplint whitespace/comments (#434)
* Add whitespace/comments check

* Adapt spacing in clang-format

* Fix cpplint whitespace/comments issues

* Grammar

* Do not use clang-format for comment spacing

* Fix with clang-format pre-commit hook
2020-03-06 00:04: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
geir-t
b974f81804
conan: Do not run tests when cross compiling (#430)
* conan: Do not run tests when cross compiling

Running conan create with a profile made for cross compiling would fail since the tests is not compiled for build OS

* Using suggestion from Conan docs

* conan: also add cross_building check in build step

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2020-02-17 14:02:45 +00:00
Christoph Bachhuber
80d8e942c5
Permanently remove cpplint's whitespace/indent check (#432) 2020-02-16 19:02:36 +01:00
Christoph Bachhuber
5ecb61599a
Add and fix cpplint readability/braces (#431)
* Add readability/braces check

* Fix cpplint readability/braces issues
2020-02-13 09:47:36 +01:00
Josh Soref
51a0efcbbc
Spelling (#429)
* spelling: argument

* spelling: conflicts

* spelling: correctly

* spelling: default

* spelling: description

* spelling: empty

* spelling: enum

* spelling: javascript

* spelling: modifying

* spelling: nonexistent

* spelling: plumbum

* spelling: programmatically

* spelling: received

* spelling: replaced

* spelling: required

* spelling: sanitizers

* spelling: semicolon

* spelling: source

* spelling: subcommands

* spelling: successful
2020-02-12 00:41:58 -05:00
Christoph Bachhuber
34bfa38691
Add copyright and copyright check (#424)
* Add copyright check

* Remove old license message

* Implement suggestions from code review
2020-02-10 14:28:47 -05:00
Henry Schreiner
b1d8285db3
Fixing appveyor by using Python 3 (#425) 2020-02-06 17:40:33 -05:00
Henry Schreiner
706b14fb14
Fix formatting 2020-01-31 13:56:15 -05:00
Henry Schreiner
63c928653b
Remove invalid comment
[skip ci]
2020-01-31 13:50:15 -05:00
Henry Schreiner
b5242611a5
Minor packaging cleanup 2020-01-31 13:49:16 -05:00
Henry Schreiner
9549c6287f
Clean up sdist creation (#422)
* Adding package to release

* Fix build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Cleaner, tigher packages

* Do not add package to release
2020-01-31 13:17:11 -05:00
Philip Top
ee851c7e88
String conversions (#421)
* add a variant of the string conversions for the default string operations.  Discriminate between the is_convertible and is_constructible type traits for object.

* update the test to test the different situations with the funny string like type
2020-01-31 07:49:40 -05:00