1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 20:23:55 +00:00

46 Commits

Author SHA1 Message Date
Henry Schreiner
74a3c0d421
refactor: move input file for single include (#1036)
Followup to #1030

---------

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-01 13:25:26 -04:00
Henry Schreiner
48dce18d3a
fix: single header includes (#828)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2023-01-05 17:46:58 -05:00
Philip Top
4dbe4b4ec4
tests: add a few more coverage tests (#794)
* add a few more coverage tests

* style: pre-commit.ci fixes

* try to fix pre-commit issues

* update mdlint style as a test

* style: pre-commit.ci fixes

* fix test

* switch test to not generate warning

* add a few more tests

* tweak the conanfile and appveyor to debug issue

* update tests

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-28 00:23:22 -04:00
Henry Schreiner
6ae1e1ecc1
ci: set up coverage on GHA (#747)
* ci: set up coverage on GHA

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* ci: update to newer codecov uploader

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* ci: move to newer Windows image

* fix: better single file script help and usage strictness

* ci: revert update to windows-2022
2022-06-27 15:41:32 -04:00
Henry Schreiner
ef692ec7c6
fix: support namespacing again in MakeSingleHeader (#707) 2022-03-21 18:56:51 -04:00
Henry Schreiner
4698131216 style: add mdlint 2021-07-19 15:23:35 -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
989bdcd6ca chore: drop unused py file 2021-07-13 21:08:59 -04:00
Henry Schreiner
f862849488
refactor: new version of MakeSingleFiles (#546)
* refactor: new version of MakeSingleFiles

* fix: use CMake and set version
2021-01-04 17:47:06 -05: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
Henry Fredrick Schreiner
fda6126d7c Adding pre-commit 2019-10-24 19:07:01 -04:00
Daniel Mensinger
dbd4933506 meson: Basic meson support (#299)
* meson: Basic meson support

With this patch, CLI11 can be used as a meson
subproject: http://mesonbuild.com/Subprojects.html

However, CMake is still required for testing and
installation. The current meson.build is not a
complete replacement.

* meson: Added meson test

* Adding Azure test
2019-07-25 17:26:13 -04:00
Henry Schreiner
433fd91212
Build testing (#277)
* build-testing better supported

* Add formatting to Azure

* Adding more jobs to Azure

* Control

* Allow libc++ to be used on linux

* Fix modernize message

* Fix variable

* fixup! Fix modernize message

* Drop auto exp. optional

* Update readme, better user id in docker

* Fix BUILD_TESTING

* Drop format from travis, leave tidy for now

* Check tidy and format

* Tidy fully on Azure now
2019-05-14 15:33:15 +02:00
Henry Schreiner
c9123811d1
CLI::IsMember (#222)
* Adding first draft of Sets

Use IsMember now

Using IsMember as backend for Set

Non-const validator backend

Move set tests to set

Clearer inits

* Drop shortcut

Tighten up classes a bit for MSVC

Check with GCC 4.8 too

* Simpler templates, but more of them

Dropping more type safety for older compilers

Shortcut string set

* Adding shortcut init

Making g++ 4.7 docker image happy

Fix Clang tidy issue with last commit

Adding one more shortcut, adding a couple of tests

* Dropping dual pointer versions of code

* Smarter shortcut syntax

* Adding slighly faster choices

* Cleanup to make InMember simpler

* Drop choices for now, adding some tests

* ValidationError is now always the error from a validator

* Support for other types of initializer lists, including enums

* Factor out type utilities, single version of IsMember code

* Adding a few tests for #224

* Minor cleanup for Validation Error

* Adding tests, moved deprecated tests

* Docs updates
2019-02-19 09:56:02 +01:00
Rafi Wiener
048f968504 Add support for delimiter when parsing vector (#209)
This commit allows parsing any char separated list given by the user.
E.g app -a 1,2,3
std::vector<int> params;
app.add_option("-a", params, "Parse the params", ',');

Signed-off-by: Rafi Wiener <rafiw@mellanox.com>

add tests for delimiter parsing

Signed-off-by: Rafi Wiener <rafiw@mellanox.com>

Fixing style, adding docker version of clang-format
2019-02-06 15:15:31 +01:00
Henry Fredrick Schreiner
ab452ab56a Add release notes, clean up single header script a bit 2018-07-30 09:51:08 +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
521696f551 Adding Python 2.6 support 2018-07-30 09:51:08 +02:00
Henry Fredrick Schreiner
b9492305c0 Add support for making custom versions of CLI11 single header 2018-07-26 18:57:50 +02:00
Henry Fredrick Schreiner
101d847c29 Use filter fn to simplify, sort includes 2018-05-06 18:36:33 +02:00
Henry Fredrick Schreiner
f7d51f6a76 Adding nicer format script example 2018-05-04 11:21:35 +02:00
Henry Fredrick Schreiner
48ed89d004 Fix spelling typo 2018-04-17 16:26:46 +02:00
Henry Schreiner
b23275358a
Adding nicer header with LICENSE to single file version (#107)
* Adding nicer header with LICENSE to single file version

* Adding badges

* Clean up sh files

* Adding explicit in a few places

* More fixes from codacy
2018-04-13 14:07:32 +02:00
Henry Fredrick Schreiner
b17f7ce63a Adding a test for coverage 2018-04-12 08:34:22 +02:00
Henry Fredrick Schreiner
b519a13119 Updating clang format pre-commit helper example
[skip ci]
2018-04-11 13:43:55 +02:00
Henry Fredrick Schreiner
909d72bfec Adding git hook example script for clang format 2018-04-09 13:55:53 +02:00
Henry Fredrick Schreiner
7a7064df4e Adding optional, refactor single file 2018-04-04 18:29:32 +02:00
Henry Schreiner
2ef176e86c
Dropping cmake and clang 5 since they are now in Travis (#89)
* Dropping cmake and clang 5 since they are now in Travis

* Dropping pathlib since it is now unused

* Doxy build

* Folding output and fixing ccache
2018-03-23 15:28:30 +01:00
Doug Johnston
09bff904e5 Allow MakeSingleHeader.py script to run from non-git source code (ie: an archive) 2018-02-15 08:02:23 +01:00
Henry Fredrick Schreiner
1c7f829514 Check tidy and style separated 2017-11-20 18:07:13 -05:00
Henry Fredrick Schreiner
366716eebc Moving check_style 2017-11-20 18:07:13 -05: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 Fredrick Schreiner
916cde58cf BSD licence, preparing for 1.0 release 2017-06-01 09:23:04 -04:00
Henry Fredrick Schreiner
cb2646a56c Moving to new location 2017-03-23 15:55:23 -04:00
Henry Fredrick Schreiner
ab3ab0118d Adding badge, printout for script 2017-02-19 16:32:04 -05:00
Henry Fredrick Schreiner
bf0b18a9f4 After discussion, LGPL seems to be the correct license 2017-02-17 19:58:06 -05:00
Henry Fredrick Schreiner
905c23bcd0 Change license 2017-02-12 13:01:43 -05:00
Henry Fredrick Schreiner
c7dadfc57a Fix extra output file 2017-02-06 14:42:27 -05:00
Henry Fredrick Schreiner
82a9523f71 Output tag too 2017-02-06 14:40:52 -05:00
Henry Fredrick Schreiner
f34924a41f Fixed script for Python 2 with future import 2017-02-06 13:03:07 -05:00
Henry Fredrick Schreiner
d71c6c9663 Remove vestige of Py 3.6 2017-02-06 12:57:59 -05:00
Henry Fredrick Schreiner
6f30770038 Py 2 compat 2017-02-06 12:12:40 -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
a12a94c4c1 Separate files, plus way to combine 2017-02-06 09:54:41 -05:00
Henry Fredrick Schreiner
2fa31c660b Updating download script 2017-02-04 15:54:01 -05:00
Henry Fredrick Schreiner
200072dc38 Added update script 2017-02-03 15:43:08 -05:00