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
a393e353ef
fix(build): simplify runs from master projects, require C++11 minimally if possible (#656) 2021-10-16 12:31:24 -04:00
Henry Schreiner
229844f4f8
docs: update CHANGELOG 2021-10-13 15:35:59 -04:00
Henry Schreiner
de28d11f7c
tests: support external Catch2 (#653) 2021-10-13 11:45:44 -04:00
Henry Schreiner
a55a7fc07a
chore: use official pre-commit mirror (#654) 2021-10-13 10:21:12 -04:00
pre-commit-ci[bot]
3ce61a1692
chore(deps): pre-commit.ci autoupdate (#650)
updates:
- [github.com/ssciwr/clang-format-hook: v12.0.1 → v13.0.0](https://github.com/ssciwr/clang-format-hook/compare/v12.0.1...v13.0.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-10-04 23:36:41 -04:00
Henry Schreiner
b59e37fbb9
docs: link to 2.1 for try online 2021-09-29 09:12:20 -04:00
Henry Schreiner
5ce8958c7e
docs: release action fixed, no reminder needed now v2.1.1 2021-09-29 07:24:48 -04:00
Henry Schreiner
f19629f84c
docs: add recent changes 2021-09-29 07:21:42 -04:00
Henry Schreiner
3b95b94406
chore: use PyPI clang-format package, pinned (#647)
* chore: use PyPI clang-format package, pinned

* style: pre-commit.ci fixes

* ci: drop unneeded job

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-29 06:15:48 -04:00
Philip Top
81b092e085
tests: fix the compile issues with the boost<optional> tests and catch (#646)
* Fix the compile issues with the boost<optional> tests and catch

* tests: add Boost test (back)

Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
2021-09-28 09:33:28 -04:00
Henry Schreiner
b440890eaf
docs: changelog update (#643)
* docs: changelog update

* chore: bump version(s)

* style: pre-commit.ci fixes

* docs: spelling fix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-24 20:37:01 -04:00
Philip Top
4101964033
fixes potential conflict with some windows macro redefinitions of min and max in the validators. (#642) 2021-09-23 19:55:33 -04:00
dependabot[bot]
c1e2ab4465
chore: bump jwlawson/actions-setup-cmake from 1.10 to 1.11 (#641)
Bumps [jwlawson/actions-setup-cmake](https://github.com/jwlawson/actions-setup-cmake) from 1.10 to 1.11.
- [Release notes](https://github.com/jwlawson/actions-setup-cmake/releases)
- [Commits](https://github.com/jwlawson/actions-setup-cmake/compare/v1.10...v1.11)

---
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-23 08:04:30 -04:00
pre-commit-ci[bot]
672caf16bf
chore(deps): pre-commit.ci autoupdate (#639)
updates:
- [github.com/psf/black: 21.8b0 → 21.9b0](https://github.com/psf/black/compare/21.8b0...21.9b0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-20 22:33:44 -04:00
Henry Schreiner
ac29910a69
docs: prepare for 2.1 (#638)
* docs: changelog update

* docs: prepare for 2.1

* Apply suggestions from code review

Co-authored-by: Philip Top <top1@llnl.gov>

Co-authored-by: Philip Top <top1@llnl.gov>
v2.1.0
2021-09-20 15:50:58 -04:00
Philip Top
6c49c299b9
feat: add a more clear force callback (#631)
* Add some missing modifiers on the options to the docs and clarify some of them.

* style: pre-commit.ci fixes

* add a more clear force callback and callback on parse modifier for options.

* update the book with new modifiers

* update documentation and add tests

* style: pre-commit.ci fixes

* more updates to the readme

* update formatting

* rework the trigger_on_parse to better support more complex option types

* fix formatting errors

* Update include/CLI/Option.hpp

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
Co-authored-by: Henry Schreiner <henry.fredrick.schreiner@cern.ch>
2021-09-20 10:23:39 -04:00
pre-commit-ci[bot]
bd3c9cb562
chore(deps): pre-commit.ci autoupdate (#637)
updates:
- [github.com/psf/black: 21.7b0 → 21.8b0](https://github.com/psf/black/compare/21.7b0...21.8b0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-15 18:33:10 -04:00
Philip Top
8b785a6c7d
feat: add some capabilities to the config parser and a stream parser (#630)
* add some capabilities to the config parser and a stream parser

* style: pre-commit.ci fixes

* add additional tests for the config parser

* additional tests of config sections and indexing

* style: pre-commit.ci fixes

* add initialization for member variables

* warning and error fixes

* add test for `parse_from_stream`

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-22 23:53:06 -04:00
Philip Top
19047d8d68
feat: relaxed option naming (#627)
* add a test for std::map

* add some test of the relaxed naming and other checks

* add validator for aliases, group names and option groups

* add extra tests and update readme

* style: pre-commit.ci fixes

* update the book chapters

* fix codacy issue

* Apply suggestions from code review

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>
2021-08-22 23:52:00 -04:00
Jose Luis Rivero
d17016e76c
fix(build): relocate cmake and pkgconfig files to an arch-independent path (#635)
* Relocate cmake and pkgconfig files to an arch-independent path

Use CMAKE_INSTALL_DATADIR instead of CMAKE_INSTALL_LIBDIR for
installing the pkgconfig and cmake files.

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>

* style: pre-commit.ci fixes

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-22 23:51:30 -04:00
dependabot[bot]
2d2372d596
chore: bump jwlawson/actions-setup-cmake from 1.9 to 1.10 (#634)
Bumps [jwlawson/actions-setup-cmake](https://github.com/jwlawson/actions-setup-cmake) from 1.9 to 1.10.
- [Release notes](https://github.com/jwlawson/actions-setup-cmake/releases)
- [Commits](https://github.com/jwlawson/actions-setup-cmake/compare/v1.9...v1.10)

---
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-22 23:49:21 -04:00
Benjamin Beichler
2f0435f390
only add CONFIGURE_DEPENDS if main project (#633)
- reglobbing of files is confusing, if CLI11 is used as library, as typically the files won't change
2021-08-10 21:55:10 -04:00
pre-commit-ci[bot]
4d34311cb1 chore(deps): pre-commit.ci autoupdate
updates:
- [github.com/psf/black: 21.6b0 → 21.7b0](https://github.com/psf/black/compare/21.6b0...21.7b0)
2021-07-19 18:46:59 -04:00
Henry Schreiner
cb72d1f2bb
style: more codacy fixes 2021-07-19 16:19:43 -04:00
Henry Schreiner
2ea663bcc7 style: add remarklint 2021-07-19 15:23:35 -04:00
Henry Schreiner
4698131216 style: add mdlint 2021-07-19 15:23:35 -04:00
Henry Schreiner
f27f6f2070
docs: fix some Codacity recommendations (#622) 2021-07-17 15:05:18 -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
9e247b1a0c
fix: single header file pragma missing (#620) 2021-07-15 09:59:46 -04:00
Henry Schreiner
030f9d6789
docs: include conda badge 2021-07-15 01:14:17 -04:00
Henry Schreiner
dfc656c465
docs: link for 2.0 post 2021-07-14 16:46:06 -04:00
Henry Schreiner
975e58b3ed
docs: add more notes about releases (#617)
* docs: add more notes about releases

* docs: update badges

* ci: fix file upload
2021-07-14 13:29:10 -04:00
Henry Schreiner
0d06d21b56
docs: fix rendering issue for changelog on GitHub v2.0.0 2021-07-14 11:34:43 -04:00
Henry Schreiner
d55f8fbaf1
style: fix and add spelling check (#615)
* style: fix and add spelling check

* Update .pre-commit-config.yaml
2021-07-14 11:23:02 -04:00
Henry Schreiner
656dda1695 chore: bump version to 2.0.0 2021-07-13 21:08:59 -04:00
Henry Schreiner
989bdcd6ca chore: drop unused py file 2021-07-13 21:08:59 -04:00
Henry Schreiner
c7af1a688c 📝 Add @alexdewar as a contributor 2021-07-11 20:11:03 -04:00
Henry Schreiner
fb3aa96640 📝 Add @AnticliMaxtic as a contributor 2021-07-11 20:11:03 -04:00
Henry Schreiner
addafa5bdf 📝 Add @dryleev as a contributor 2021-07-11 20:11:03 -04:00
Henry Schreiner
bb7c96a09e 📝 Add @paddy-hack as a contributor 2021-07-11 20:11:03 -04:00
Henry Schreiner
c9558b3470 chore: changelog update 2021-07-11 20:11:03 -04:00
Olaf Meeuwissen
2255619b0f
fix: commenting of descriptions with embedded newlines (#592)
* Add configuration output multi-line description tests

This adds tests for the application's description as well as option
groups and subcommands.

See #592.

* Fix commenting of configuration output multi-line descriptions
2021-06-28 13:07:03 -04:00
Henry Schreiner
aa31576666
chore: bump CMake limits and catch2 verison (#607) 2021-06-24 12:31:44 -04:00
dryleev
d0a2aa7908
fix: remove duplicated call to subcommand's final_callback (#584)
* Fix excessive call to subcommand's final_callback

When parse_complete_callback_ is set there is an extra call to
run_callback() inside the App::_parse(std::vector<std::string>&) method.
This extra call also excessively calls a final_callback_ (when it is
also set) for the command and (since it is recursive) for it's
subcommands.

This commit adds extra boolean parameter for the run_callback() method
allowing to explicitly suppress calling to final_callback_. The value of
this parameter is also propagated to recursive calls to run_callback().

Fixes #572

* fix: main app should run final_callback, add tests

Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
2021-06-24 09:39:43 -04:00
Philip Top
75f2d7747f
fix: allow quotes to specify a program name with spaces on the single string parse operation. (#605) 2021-06-21 12:16:09 -04:00
Philip Top
f27822deaa
fix: help flag should work even when config file is required (#606) 2021-06-21 12:13:08 -04:00
Philip Top
25cca2dcb9
docs: add custom parse example (#603) 2021-06-17 17:44:19 -04:00
Philip Top
a8ef5b8d2f
fix: avoid printing description for non configurable subcommand (#604) 2021-06-17 17:42:53 -04:00
Philip Top
2fa8cae9e8
feat: add changeable help message string to version (#601)
add an optional help message string to the version_add flag if desired to override
2021-06-17 12:04:55 -04:00
Philip Top
15bb724e06
fix: make the IncorrectConstruction errors on bad subcommand name more comprehensible. (#602) 2021-06-17 08:37:38 -04:00