Skip to content

Commit ea8bc63

Browse files
committed
CPP-AP: version 1.2
- Added the `demo` workflow - Cleanup of the scripts, CMake and workflow files - Improved error logic for argument value getting
1 parent b9fdeaa commit ea8bc63

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PROJECT_NAME = "CPP-AP"
4848
# could be handy for archiving the generated documentation or if some version
4949
# control system is used.
5050

51-
PROJECT_NUMBER = 1.1.1
51+
PROJECT_NUMBER = 1.2
5252

5353
# Using the PROJECT_BRIEF tag one can provide an optional one line description
5454
# for a project that appears at the top of each page and should give viewer a

include/ap/argument_parser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* This header file contians the entire CPP-AP library implementation.
1010
*
11-
* @version 1.1
11+
* @version 1.2
1212
*/
1313

1414
#pragma once

tests/source/test_argument_parser_parse_args.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ TEST_CASE_FIXTURE(
382382

383383
for (std::size_t i = 0; i < non_default_num_args; i++) {
384384
const auto arg_name = prepare_arg_name(i);
385-
CHECK_THROWS_AS(sut.value(arg_name.primary), std::logic_error);
386-
CHECK_THROWS_AS(sut.value(arg_name.secondary.value()), std::logic_error);
385+
CHECK_THROWS_AS(sut.value(arg_name.primary), ap::error::invalid_value_type_error);
386+
CHECK_THROWS_AS(sut.value(arg_name.secondary.value()), ap::error::invalid_value_type_error);
387387
}
388388
}
389389

0 commit comments

Comments
 (0)