Philip Top
5a03ee5838
Allow non standard option names like -option
( #1078 )
...
This has been bounced around for a couple years now
#474 and a few others have expressed desire to work with non-standard
option names. We have been somewhat resistant to that but I think it can
be done now. This PR adds a modifier `allow_non_standard_option_names()`
It is purposely long, it is purposely off by default. But what it does
is allow option names with a single `-` to act like a short option name.
With this modifier enabled no single letter short option names are
allowed to start with the same letter as a non-standard names. For
example `-s` and `-single` would not be allowed.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2024-10-23 05:14:29 -07:00
Philip Top
35aa92d71a
update supported cmake versions and add some tests with newer compilers ( #972 )
...
Update and test with some newer compilers and cmake versions
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-08 05:40:26 -08:00
Philip Top
9dfeefe2ba
update copyright date to 2024 ( #971 )
...
update copyright dates
2024-01-06 08:08:31 -08:00
Philip Top
39a5f1981e
chore: update copyright year to 2023 ( #825 )
2023-01-03 17:29:37 -05: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
Philip Top
4cae08686d
docs: update copyright dates to 2022 ( #717 )
2022-03-26 21:54:49 -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
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 Fredrick Schreiner
101d847c29
Use filter fn to simplify, sort includes
2018-05-06 18:36:33 +02:00
Henry Fredrick Schreiner
232c792bae
Adding examples to tests
2018-04-09 13:19:23 +02:00
Henry Fredrick Schreiner
0395467d48
Making RuntimeError a ParseError
2017-11-20 12:31:14 -05:00
Henry Fredrick Schreiner
0bca8fdd30
Adding docs, fixing examples for usage
2017-11-20 12:31:14 -05:00
Henry Fredrick Schreiner
04268dac5a
Minor cleanup to inter_arg_order
2017-06-05 08:37:23 -04:00
Henry Fredrick Schreiner
1816330629
clang-formatting new source
2017-06-04 13:23:01 -04:00
Henry Fredrick Schreiner
11df3becfb
Show parse order is preserved
2017-06-04 13:19:10 -04:00