Philip Top
71755e4f67
tweak the parsing of files for flags with disable_flag_override ( #800 )
...
* tweak the parsing of files for flags with disable_flag_override, basically allow true as a valid value to be interpreted as the default in that case
* style: pre-commit.ci fixes
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-30 15:43:25 -08:00
Philip Top
ca9a128720
test for out of bounds long long ( #807 )
...
* test for out of bounds long long
* style: pre-commit.ci fixes
* change to use std types
* style: pre-commit.ci fixes
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-30 15:41:34 -08:00
Ryan Sherlock
8f8344bff8
fix: make_description min option output ( #808 )
...
Include spacing between the number of minimum options required and the rest of the description.
2022-11-30 11:31:11 -08:00
pre-commit-ci[bot]
788c3f58cb
chore(deps): pre-commit.ci autoupdate ( #799 )
...
* chore(deps): pre-commit.ci autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0 )
- [github.com/pre-commit/mirrors-clang-format: v14.0.6 → v15.0.4](https://github.com/pre-commit/mirrors-clang-format/compare/v14.0.6...v15.0.4 )
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.3 → v3.0.0-alpha.4](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.3...v3.0.0-alpha.4 )
* style: pre-commit.ci fixes
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-30 09:01:30 -08:00
DarkWingMcQuack
b16c8c8ce4
Update TypeTools.hpp ( #803 )
...
* Update TypeTools.hpp
fix #802 by using checking `std::ceil(val) == std::floor(val)` instead of `val == static_cast<std::int64_t>(val)` to avoid warnings-
* style: pre-commit.ci fixes
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-21 08:05:04 -08:00
Henry Schreiner
c2ea58c7f9
chore: prepare for 2.3.1 ( #797 )
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
v2.3.1
2022-10-31 23:54:32 -04:00
polistern
e2270dd6f8
fix: fixed footer newline behavior ( #796 )
...
* fix: show newline before footer only if footer is set and not empty
* chore: tests corrected for new help message formatting.
2022-10-28 21:15:18 -04:00
Philip Top
25274e2c7b
fix: missing function definition ( #793 )
...
* the get_option_group definition was missing from the splitting of the calls.
* style: pre-commit.ci fixes
* the get_option_group definition was missing from the splitting of the calls.
* style: pre-commit.ci fixes
* add test for missing function
* style: pre-commit.ci fixes
* add test for get_option_group
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-28 09:57:54 -04: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
pre-commit-ci[bot]
90e6ee1aaa
chore(deps): pre-commit.ci autoupdate ( #792 )
...
updates:
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.2 → v3.0.0-alpha.3](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.2...v3.0.0-alpha.3 )
- [github.com/markdownlint/markdownlint: v0.11.0 → v0.12.0](https://github.com/markdownlint/markdownlint/compare/v0.11.0...v0.12.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-25 05:53:46 -07:00
pre-commit-ci[bot]
b681d4d605
chore(deps): pre-commit.ci autoupdate ( #790 )
...
updates:
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.1 → v3.0.0-alpha.2](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.1...v3.0.0-alpha.2 )
- [github.com/codespell-project/codespell: v2.2.1 → v2.2.2](https://github.com/codespell-project/codespell/compare/v2.2.1...v2.2.2 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-23 20:18:56 -07:00
dependabot[bot]
c4d3f39dbe
chore: bump jwlawson/actions-setup-cmake from 1.12 to 1.13 ( #788 )
...
Bumps [jwlawson/actions-setup-cmake](https://github.com/jwlawson/actions-setup-cmake ) from 1.12 to 1.13.
- [Release notes](https://github.com/jwlawson/actions-setup-cmake/releases )
- [Commits](https://github.com/jwlawson/actions-setup-cmake/compare/v1.12...v1.13 )
---
updated-dependencies:
- dependency-name: jwlawson/actions-setup-cmake
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-11 10:28:29 -04:00
pre-commit-ci[bot]
e062023d97
chore(deps): pre-commit.ci autoupdate ( #787 )
...
updates:
- [github.com/psf/black: 22.8.0 → 22.10.0](https://github.com/psf/black/compare/22.8.0...22.10.0 )
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.0 → v3.0.0-alpha.1](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.0...v3.0.0-alpha.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-10 22:10:52 -04:00
Marcin Ropa
9a6c6f6b50
fix: static analysis problems ( #785 )
...
* fix: static analysis problems
* fix to warrnings reported by Klocwork in CLI11 v2.2.0
* style: pre-commit.ci fixes
* Update include/CLI/FormatterFwd.hpp
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
* Update include/CLI/FormatterFwd.hpp
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2022-10-08 16:16:46 -04:00
Henry Schreiner
a66ae41457
chore: bump version ( #782 )
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
v2.3.0
2022-10-06 00:09:41 -04:00
Henry Schreiner
9158ce65bf
chore: update changelog ( #776 )
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Update CHANGELOG.md
2022-10-05 23:52:52 -04:00
Philip Top
fd30b5989f
fix: improve some confusing error situations with config files ( #781 )
...
* add some more tests for coverage and fix some confusing error situations with config files.
* style: pre-commit.ci fixes
* fix warning
* ci: fix coverage
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2022-09-29 11:48:03 -04:00
Philip Top
dcbcb4721d
fix: negated flag config files ( #775 )
...
* add some coverage tests, and fix the issue with negated flags and config files
* style: pre-commit.ci fixes
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-09-14 10:45:22 -04:00
Henry Schreiner
1a26afab04
fixi: include windows 2022 ( #748 )
...
* ci: include windows 2022
* fix visual studio 2022 issue with std::array and type detection
* style: pre-commit.ci fixes
* warning fixes
Co-authored-by: Philip Top <top1@llnl.gov>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Philip Top <phlptp@gmail.com>
2022-09-05 23:51:15 -04:00
pre-commit-ci[bot]
e88700a6da
chore(deps): pre-commit.ci autoupdate ( #767 )
...
updates:
- [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0 )
- [github.com/pre-commit/mirrors-prettier: v2.7.1 → v3.0.0-alpha.0](https://github.com/pre-commit/mirrors-prettier/compare/v2.7.1...v3.0.0-alpha.0 )
- [github.com/codespell-project/codespell: v2.1.0 → v2.2.1](https://github.com/codespell-project/codespell/compare/v2.1.0...v2.2.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-09-05 23:50:31 -04:00
Philip Top
faea921e40
chore: cmake reorganization ( #768 )
...
update conan and azure-pipelines to fix gcc 4.8 issue
make the CLI11 target sources only for newer CMake
Change the cmake to use subdirectory and move the library generation and warnings to separate files.
2022-08-25 08:14:59 -04:00
Henry Schreiner
c7aff0ee6b
ci: fix GCC 4.8 missing dir issue
2022-08-23 11:42:02 -04:00
Henry Schreiner
8475678660
ci: add testing for pre-compiled mode
2022-08-23 11:42:02 -04:00
pre-commit-ci[bot]
bc4b57489d
style: pre-commit.ci fixes
2022-08-23 11:42:02 -04:00
Henry Schreiner
a561cac9fe
ci: drop failing style check
2022-08-23 11:42:02 -04:00
Daniel Herrera Castro
d5b9b3d03a
Make CLI11_PRECOMPLED off by default
2022-08-23 11:42:02 -04:00
pre-commit-ci[bot]
d3a8dfb065
style: pre-commit.ci fixes
2022-08-23 11:42:02 -04:00
Daniel Herrera Castro
b58e99f22e
[precompile] Use a single Precompile.cpp
2022-08-23 11:42:02 -04:00
Daniel Herrera Castro
7a7e0822dd
[precompile] Split Validators.hpp
2022-08-23 11:42:02 -04:00
Daniel Herrera Castro
4048596250
[precompile] Split StringTools.hpp
2022-08-23 11:42:02 -04:00
Daniel Herrera Castro
d1f0f483da
[precompile] Split Split.hpp
2022-08-23 11:42:02 -04:00
Daniel Herrera Castro
c24bf75413
[precompile] Split Formatter.hpp
2022-08-23 11:42:02 -04:00
Daniel Herrera Castro
003e82579e
[precompile] Split Config.hpp
2022-08-23 11:42:02 -04:00
Daniel Herrera Castro
3e5173d468
[precompile] Split Option.hpp
2022-08-23 11:42:02 -04:00
Daniel Herrera Castro
b56ae237e5
[precompiled] Initial proof-of-concept with App.cpp
...
- Add C11_COMPILE cmake option that creates a static lib instead of header-only
- Add C11_INLINE macro that depends on C11_COMPILE
- Split App.hpp into App.hpp and impl/App_inl.hpp
- Add App.cpp that compiles App_inl.hpp into an object file
- CMake modifications to handle impl headers differently for sinlge-header, headers-only, and compiled versions
2022-08-23 11:42:02 -04:00
Matt McCormick
c57000e582
fix: add missing Macros.hpp include to Error.hpp ( #755 )
...
* Add missing Macros.hpp include to Error.hpp
To address:
```
In file included from /ITKWebAssemblyInterface/include/itkPipeline.h:21:
In file included from /ITKWebAssemblyInterface-build/_deps/cli11-src/include/CLI/App.hpp:25:
In file included from /ITKWebAssemblyInterface-build/_deps/cli11-src/include/CLI/ConfigFwd.hpp:17:
/ITKWebAssemblyInterface-build/_deps/cli11-src/include/CLI/Error.hpp:75:5: error: unknown type name 'CLI11_NODISCARD'
CLI11_NODISCARD int get_exit_code() const { return actual_exit_code; }
^
```
* style: pre-commit.ci fixes
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-05 00:10:54 -04:00
pre-commit-ci[bot]
0b83055901
chore(deps): pre-commit.ci autoupdate ( #754 )
...
updates:
- [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0 )
- [github.com/pre-commit/mirrors-clang-format: v14.0.5 → v14.0.6](https://github.com/pre-commit/mirrors-clang-format/compare/v14.0.5...v14.0.6 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-04 21:57:19 -04:00
dependabot[bot]
65ef491b11
chore: bump actions/checkout from 2 to 3 ( #751 )
...
* chore: bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Apply suggestions from code review
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <henry.fredrick.schreiner@cern.ch>
2022-07-04 09:40:38 -04:00
dependabot[bot]
5c1754222c
chore: bump actions/setup-python from 2 to 4 ( #752 )
...
* chore: bump actions/setup-python from 2 to 4
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Apply suggestions from code review
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <henry.fredrick.schreiner@cern.ch>
2022-07-04 09:40:06 -04:00
dependabot[bot]
a36ecd98d0
chore: bump actions/upload-artifact from 2 to 3 ( #750 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-29 14:18:44 -04:00
Henry Schreiner
41cfea817e
chore: simpler dependabot ( #749 )
...
Ignores no longer needed after April 2022. Dependabot keeps the same style pinning now.
2022-06-29 02:02:34 -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
c781998273
chore: clang tidy updates ( #742 )
...
* chore: update clang-tidy
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
* refactor: address clang-tidy
* fix: C++11 support
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
* chore: two more clang-tidy fixes
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
* fix: get_inject_separator should be bool
* refactor: addressing review feedback
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Philip Top <phlptp@gmail.com>
* Apply suggestions from code review
* Update include/CLI/Config.hpp
* Update include/CLI/Config.hpp
* Update include/CLI/Config.hpp
* Update include/CLI/Config.hpp
Co-authored-by: Philip Top <phlptp@gmail.com>
2022-06-26 14:53:01 -04:00
pre-commit-ci[bot]
683ec61209
chore(deps): pre-commit.ci autoupdate ( #745 )
...
updates:
- [github.com/pre-commit/mirrors-clang-format: v14.0.4-1 → v14.0.5](https://github.com/pre-commit/mirrors-clang-format/compare/v14.0.4-1...v14.0.5 )
- [github.com/pre-commit/mirrors-prettier: v2.6.2 → v2.7.1](https://github.com/pre-commit/mirrors-prettier/compare/v2.6.2...v2.7.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-20 14:16:18 -07:00
pre-commit-ci[bot]
e067ae35c6
chore(deps): pre-commit.ci autoupdate ( #743 )
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0 )
- [github.com/pre-commit/mirrors-clang-format: v14.0.3 → v14.0.4-1](https://github.com/pre-commit/mirrors-clang-format/compare/v14.0.3...v14.0.4-1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-15 06:58:35 -07:00
Philip Top
443c1a946d
fix: wrap min and max for MSVC ( #741 )
...
* wrap min and max in parenthesis for Visual studio 2017 and earlier compatibility
* try pre-commit to detect min/max issues
* actually fix the identified issues from the new check
* more min/max fixes
2022-06-09 14:07:59 -04:00
Philip Top
020a21afc6
Fix an issue where an error was generated if just a file name was supplied to the split_program_name parsing ( #740 )
2022-06-05 19:36:30 -07:00
PeteAudinate
c692be41cf
fix: rename variable to avoid clash with optarg ( #734 )
...
https://linux.die.net/man/3/optarg
2022-05-24 15:23:09 -04:00
Philip Top
de215ef978
Incorrect subcommand callback trigger ( #733 )
...
* fix the issue where subcommand callbacks would be triggered multiple times if specified as configurable.
* style: pre-commit.ci fixes
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-24 15:19:41 -04:00
shameekganguly
efbfd460a7
Include <functional> in FormatterFwd ( #727 )
...
Without this header, the project might not compile is some environments.
Signed-off-by: Shameek Ganguly <shameekarcanesphinx@gmail.com>
2022-05-20 14:52:42 -07:00