Commit Graph

695 Commits

Author SHA1 Message Date
Pranav Srinivas Kumar
de4239483d Added logic and unit tests for the required flag in mutex_args 2023-11-04 15:36:01 -05:00
Pranav Srinivas Kumar
7bbde0defb Added unit test for 2 mutex_groups 2023-11-04 15:24:07 -05:00
Pranav Srinivas Kumar
8f70dde82e Added unit test for mutex_args with three arguments 2023-11-04 15:20:47 -05:00
Pranav Srinivas Kumar
eea95c0e3a Added mutex args to copy constructor, changed to ordered set for data structure 2023-11-04 15:19:10 -05:00
Pranav Srinivas Kumar
39988ec62d Initial commit for implementing MutuallyExclusiveGroup 2023-11-04 14:57:01 -05:00
Pranav Srinivas Kumar
281f1ab017 Closes #113, add custom std::ostream& argument to ArgumentParser constructor 2023-11-04 09:31:13 -05:00
Pranav Srinivas Kumar
7a3e0f1cb3 Added another unit test for optional argument error reporting 2023-11-04 09:17:59 -05:00
Pranav Srinivas Kumar
c6e64ae36d Simplified logic in error reporting, asking user if they meant to use a specific optional argument 2023-11-04 09:11:34 -05:00
Pranav Srinivas Kumar
62052fefcb Closes #285 2023-11-04 09:01:31 -05:00
Pranav Srinivas Kumar
7657a22001 Updated formatting of error message, showing all variations of argument name 2023-11-03 22:18:08 -05:00
Pranav Srinivas Kumar
78ba5e9828 Removed brackets and quotes in error message 2023-11-03 22:12:00 -05:00
Pranav Srinivas Kumar
4111905a74 Improved error reporting for #299 2023-11-03 22:05:46 -05:00
Pranav
ac4c578f60
Merge pull request #298 from cobyj33/cobyj33-fix-subdirectory-cmake-options
Set argparse to not run tests or set up install if not top level
2023-11-01 06:13:02 -05:00
cobyj33
e6d2628723 Set argparse to not run tests or set up install if not top level 2023-10-31 21:09:12 -05:00
Pranav
e4d4f67a44
Merge pull request #297 from cobyj33/cobyj33-more-descriptive-errors
More descriptive parse_number errors
2023-10-28 06:23:51 -05:00
Pranav
0d97e1c00a
Merge pull request #296 from cobyj33/cobyj33-fix-sample-building
Fix all samples building to "tests" binary
2023-10-28 06:17:30 -05:00
cobyj33
9e647254f8 More descriptive parse_number errors 2023-10-28 00:26:08 -05:00
cobyj33
5b4f357326 Fix all samples building to "tests" binary 2023-10-27 23:03:00 -05:00
Pranav Srinivas Kumar
4d8cb2391b Added README entry for flag() 2023-10-27 16:38:53 -05:00
Pranav Srinivas Kumar
716ec60291 Added flag() shorthand function 2023-10-27 16:37:20 -05:00
Pranav Srinivas Kumar
5e7ce61ca7 Closes #278 2023-10-27 12:59:04 -05:00
Pranav Srinivas Kumar
d28188f4d5 Closes #247 2023-10-27 12:34:57 -05:00
Pranav Srinivas Kumar
bf9642c51d Upgraded doctest to v2.4.11 2023-10-27 11:41:35 -05:00
Pranav Srinivas Kumar
22d57ac9ba Added C++17 requirement to samples CMakeLists 2023-10-27 11:33:09 -05:00
Pranav
b10afeb50c
Merge pull request #295 from p-ranav/feature/277_choices
Closes #277
2023-10-27 10:57:40 -05:00
Pranav Srinivas Kumar
fd726fd341 Fixed clang tidy warning about struct name 2023-10-27 10:53:52 -05:00
Pranav Srinivas Kumar
6d49d5ee1b Limiting choices support to string type or integer type 2023-10-27 10:35:04 -05:00
Pranav Srinivas Kumar
0b8d0e2426 Added support for integer type in choices 2023-10-27 10:28:54 -05:00
Pranav Srinivas Kumar
9bb553b882 #277 Added in-built support for string_type choices 2023-10-27 09:16:25 -05:00
Pranav
9fe48c74e4
Merge pull request #294 from cobyj33/cobyj33-readme-parse-args-catch-all-exceptions
Change parse_args readme and samples to catch const std::exception&
2023-10-26 07:25:22 -05:00
cobyj33
1a7a1dfd43 Change parse_args examples to catch const std::exception instead of std::runtime_error
parse_args can throw exceptions that are not based on std::runtime_error, and the
error message should show on all errors.
2023-10-25 20:33:24 -05:00
Pranav
31fb9e0336
Merge pull request #293 from cobyj33/cobyj33-readme-fetch-conent-disable-testing
Add to readme cmake FetchContent section
2023-10-25 19:55:21 -05:00
cobyj33
90945c5c95 Add to readme FetchContent section to automatically turn off building tests and samples 2023-10-25 19:12:11 -05:00
Pranav
5614b96e5a
Merge pull request #292 from BitMaskMixer/gcc_warning_fix
CMakefile: Use -Wpedantic, -Werror and -Wextra for compilation in gcc. Fixed warnings
2023-10-20 18:46:07 -05:00
Christoph Hindermann
6c4bddb990 CMakefile: Use -Wpedantic, -Werror and -Wextra for compilation in gcc. Fixed warnings 2023-10-20 19:57:12 +02:00
Pranav
57b63b09fa
Merge pull request #290 from Arthapz/master
Add C++20 module
2023-10-20 08:06:14 -05:00
Pranav
694ca7ff34
Merge pull request #291 from kianmeng/fix-typos
Fix typos
2023-10-20 08:01:59 -05:00
Arthur LAURENT
24569f69e8 fix module compilation with clang on windows when std module is disabled 2023-10-20 10:53:39 +02:00
Arthur LAURENT
7f5de9ab25
fix import std support 2023-10-19 21:50:00 +02:00
Arthur LAURENT
67a4e91da9
fix module and headerfile installation 2023-10-19 20:35:56 +02:00
Arthur LAURENT
2040a740a3
use function style target declaration 2023-10-19 18:57:11 +02:00
Kian-Meng Ang
aa25a2f3ac Fix typos
Found via `codespell -L seh`
2023-10-19 13:09:11 +08:00
Arthur LAURENT
9788dee9a2
fix basename for tests without module 2023-10-15 19:16:55 +02:00
Arthur LAURENT
a47dd910f3
format lua code with 4 space instead of tabs 2023-10-15 19:10:35 +02:00
Arthur LAURENT
3435365979
add xmake support for easier C++20 module compilation and testing 2023-10-15 18:56:53 +02:00
Arthur LAURENT
6723c81877
update test to use module when WITH_MODULE macro is set 2023-10-15 18:51:56 +02:00
Arthur LAURENT
23aff1938a
add argparse C++20 module 2023-10-15 17:13:56 +02:00
Arthur LAURENT
7a13042264
use inline constexpr instead of static constexpr for free constants 2023-10-15 17:08:22 +02:00
Pranav
b0930ab028
Merge pull request #268 from fanurs/align_multiline_message
Fix issue #248: Align multiline help messages
2023-07-11 08:15:12 -05:00
Fanurs
e82653c2d9 Fixed test for multiline help message alignment 2023-04-22 19:23:17 -04:00