Pranav Srinivas Kumar
14287af007
Closes #94
2022-09-21 06:23:42 -07:00
Pranav
4dbc910a49
Merge pull request #201 from p-ranav/feature/parse_known_args
...
parse_known_args
2022-09-21 07:59:12 -05:00
Pranav Srinivas Kumar
6a3c6e06e6
Added 'Parse Known Args' section
2022-09-21 05:54:21 -07:00
Pranav Srinivas Kumar
6e23d5b22e
Closes #181
2022-09-21 05:47:47 -07:00
Pranav Srinivas Kumar
4f10f378c5
Bumped version to v2.8
2022-09-20 21:21:06 -07:00
Pranav
c91fc8477a
Renamed section Subparsers -> Subcommands
2022-09-20 23:18:14 -05:00
Pranav
c879553fba
Fixed indentation in table of contents
2022-09-20 23:17:41 -05:00
Pranav Srinivas Kumar
793fbcde16
Added is_subcommand_used helper function
2022-09-20 21:15:58 -07:00
Pranav Srinivas Kumar
e35ce54028
Added example for subparser
2022-09-20 20:48:01 -07:00
Pranav Srinivas Kumar
6ed180f89e
Updated copy constructor and added parser path to correctly print program name in help for subparsers
2022-09-20 20:45:32 -07:00
Pranav Srinivas Kumar
6c7da857b6
Added table of contents to README and clang formatted code
2022-09-20 20:27:24 -07:00
Pranav Srinivas Kumar
6987a83ad5
Updated help to print subcommands list
2022-09-20 20:09:42 -07:00
Pranav Srinivas Kumar
2f2858a8a7
Draft implementation of subparsers #42
2022-09-20 19:54:29 -07:00
Pranav Srinivas Kumar
327e16c61b
Bumped to version v2.7
2022-09-18 07:14:36 -07:00
Pranav Srinivas Kumar
e9099de7d4
Removed contributors list. See https://github.com/p-ranav/argparse/graphs/contributors for full list
2022-09-18 07:13:49 -07:00
Pranav
af282c0f68
Updated example to use std::string instead of cstring for default value
2022-09-07 08:30:22 -05:00
Pranav
b8160a86b5
Merge pull request #192 from jun-sheaf/patch-2
...
Use references for any_cast
2022-09-03 13:14:01 -05:00
Randolf Jung
357068156e
Use references for any_cast
2022-09-03 19:56:33 +02:00
Pranav
68abf03688
Merge pull request #191 from jun-sheaf/patch-1
...
Remove unnecessary back_inserter
2022-08-30 19:16:43 -05:00
Randolf J
876aa99a97
Remove unnecessary back_inserter
2022-08-31 00:32:01 +02:00
Pranav
c44dde5440
Merge pull request #189 from skrobinson/wip-update-ci-hosts
...
Update CI hosts and fix clang-cl build
2022-08-13 08:27:21 -05:00
Sean Robinson
a8e2823d68
Replace constexpr generic_strtod with inline const
...
clang-ci >= 13.0 is failing to compile a constexpr function pointer
assignment. This is possibly due to strtof (and family) not being
implemented as constexpr in the relevant libc++.
Closes #136
Closes #156
Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-08-11 14:02:38 -07:00
Sean Robinson
d8c10a9c79
Add cmake_opts value to allow specifying an alternate toolchain
...
The new "windows-latest-clang" target does not honor the CXX environment
variable and uses the default MSVC compiler. This tries to tell cmake to
handle things via a toolset name.
Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-08-11 13:20:43 -07:00
Sean Robinson
8a90914a2a
Add Windows 2022 Clang-cl runner
...
Several people using clang-cl on Windows are reporting build errors after
a upgrading to v13. This tries to replicate the error to allow testing
a fix.
Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-08-11 12:00:31 -07:00
Sean Robinson
566d1df20e
Add MacOS 12 CI runner
...
This expands test environment coverage to two MacOS versions.
Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-08-04 11:37:02 -07:00
Sean Robinson
0ad03de428
Reenable Windows 2019 MSVC runner
...
windows-latest changed to Windows 2022 during first quarter of 2022. This
adds windows-2019 to CI test matrix do that we can catch changes that break
the older configuration.
Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-08-04 11:35:37 -07:00
Pranav
878bd5edac
Merge pull request #186 from jonas-schulze/emptyline
...
Add empty line above epilog
2022-07-25 10:16:41 -05:00
Jonas Schulze
ae5de262d2
Add empty line above epilog
2022-07-25 16:43:58 +02:00
Pranav
f0e20fafdc
Merge pull request #183 from eidelen/eidelen-cmake-fetchcontent
...
Extend Readme with CMake FetchContent integration of argparse.
2022-07-10 09:59:03 -05:00
Adrian Schneider
17d567c283
Extend Readme with CMake FetchContent integration of argparse.
2022-07-09 17:04:02 +02:00
Pranav
4801fd0bdc
Merge pull request #182 from skrobinson/wip-post-2.6-cleanups
...
Post-2.6 cleanups
2022-07-07 10:19:13 -05:00
Sean Robinson
14097df904
Clean miscellaneous source styling
...
Clears warnings for the following checks in clang-tidy:
readability-braces-around-statements
readability-else-after-return checks
Also adds hints about code style to CONTRIBUTING document.
Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-07-06 10:03:56 -07:00
Sean Robinson
2460019e2e
Update copyright date
...
Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-06-22 14:02:00 -07:00
Pranav Srinivas Kumar
40a3888f15
Bumped version to v2.6
2022-06-22 10:59:52 -07:00
Pranav
24c599dfde
Merge pull request #125 from hokacci/feature/variable-length-nargs
...
Improve nargs
2022-06-22 10:57:38 -07:00
Yoshihiro Hokazono
ed84d90d89
Move NArgsRange to private: because it is detail of implementation
2022-06-22 09:30:36 +09:00
Yoshihiro Hokazono
25d24c731b
SizeRange -> NArgsRange
2022-06-22 09:26:43 +09:00
Yoshihiro Hokazono
acff046fc5
Use optional instead of zero_or_one
2022-06-22 09:24:51 +09:00
Yoshihiro Hokazono
e44023f424
Explain variable-length arguments in README
2022-06-22 07:55:48 +09:00
Yoshihiro Hokazono
7b5084c454
Fix a typo
2022-06-22 07:16:41 +09:00
Yoshihiro Hokazono
df6e7de86a
Prefer empty() to size() == 0
2022-06-22 07:15:50 +09:00
Yoshihiro Hokazono
5d6544a04e
Retrieve changes on 37a1f3b9e6
2022-06-22 07:11:52 +09:00
Yoshihiro Hokazono
b869b5a209
NArgsPattern -> nargs_pattern (to snake case)
2022-06-22 07:07:59 +09:00
Yoshihiro Hokazono
08943f47ab
Merge branch 'master' into feature/variable-length-nargs
2022-06-21 08:36:33 +09:00
Yoshihiro Hokazono
3459eec647
Make throw_* funcs and make validate() clearer
2022-06-21 07:14:09 +09:00
Yoshihiro Hokazono
12fcae66a7
Prefer pre-const to post-const
2022-06-21 06:48:13 +09:00
Yoshihiro Hokazono
0195a5065c
Complete "remainig" backward compatibility
2022-06-21 06:45:26 +09:00
Yoshihiro Hokazono
6dfaa1c20c
Restore a "remaining" test case for compat
2022-06-21 06:44:29 +09:00
Pranav
234f0cde82
Bumped version to v2.5
2022-05-27 07:30:25 -05:00
Pranav
571f8e3bff
Bumped version to v2.5
2022-05-27 07:29:42 -05:00