From f5f69877b091d0fe191070fdce212259ebb9a131 Mon Sep 17 00:00:00 2001 From: SpectraL519 Date: Thu, 16 May 2024 22:38:59 +0200 Subject: [PATCH] final touches before release --- change_log.md | 32 +++++++++++-------- cpp-ap-demo | 2 +- .../test_argument_parser_add_argument.cpp | 10 +++--- 3 files changed, 23 insertions(+), 21 deletions(-) diff --git a/change_log.md b/change_log.md index c56f156..a8b4641 100644 --- a/change_log.md +++ b/change_log.md @@ -23,17 +23,21 @@ ### Version 1.1 -* Added `change_log.md` -* Reorganized project folder strucure: - * Renamed folders `src` to `source` - * Moved formatting scripts to `scripts/format/` -* Aligned the `.clang-format` configuration file -* Added the `install_clang17_toolchain.sh` env script -* Added the `format` workflow -* Switched to the `std::ranges` and `std::views` algorithms for all current container operations -* Modified the `argument_name` structure - renamed members: `name` to `primary`, `short_name` to `secondary` -* Added `argument_name::match(string_view)` and `argument_name::match(argument_name)` functions -* Added aliases for default argument enum classes: - * `ap::default_argument::positional` = `ap::default_posarg` - * `ap::default_argument::optional` = `ap::default_optarg` -* Renamed the predefined: `ap::action::check_file_exists_action` -> `ap::action::check_file_exists` +* General: + * Added `change_log.md` + * Reorganized project folder strucure: + * Renamed folders `src` to `source` + * Moved formatting scripts to `scripts/format/` + * Switched to the `std::ranges` and `std::views` algorithms for all current container operations + * Modified the `argument_name` structure - renamed members: `name` to `primary`, `short_name` to `secondary` + * Added `argument_name::match(string_view)` and `argument_name::match(argument_name)` functions + * Added aliases for default argument enum classes: + * `ap::default_argument::positional` = `ap::default_posarg` + * `ap::default_argument::optional` = `ap::default_optarg` + * Renamed the predefined: `ap::action::check_file_exists_action` -> `ap::action::check_file_exists` +* Formatting: + * Aligned the `.clang-format` configuration file + * Added the `install_clang17_toolchain.sh` env script + * Added the `format` workflow +* New features: + * Added the root `CMakeLists.txt` and `cmake/cpp-ap-config.cmake.in` files to enable CMake integration for the library diff --git a/cpp-ap-demo b/cpp-ap-demo index d5fdcb0..5f1b991 160000 --- a/cpp-ap-demo +++ b/cpp-ap-demo @@ -1 +1 @@ -Subproject commit d5fdcb0a3e75794a86940d40c4547aaf02d2ec5f +Subproject commit 5f1b9910f36dafc57141e8248a37c0555ba30631 diff --git a/test/source/test_argument_parser_add_argument.cpp b/test/source/test_argument_parser_add_argument.cpp index 6fd66ba..85256b0 100644 --- a/test/source/test_argument_parser_add_argument.cpp +++ b/test/source/test_argument_parser_add_argument.cpp @@ -22,9 +22,7 @@ constexpr std::string_view other_secondary_name = "o"; TEST_SUITE_BEGIN("test_argument_parser_add_argument"); TEST_CASE_FIXTURE(argument_parser_test_fixture, "default_positional_arguments should add the specified arguments") { - sut.default_positional_arguments( - { ap::default_argument::positional::input, ap::default_argument::positional::output } - ); + sut.default_positional_arguments({ ap::default_posarg::input, ap::default_posarg::output }); const auto input_arg = sut_get_argument("input"); REQUIRE(input_arg); @@ -37,9 +35,9 @@ TEST_CASE_FIXTURE(argument_parser_test_fixture, "default_positional_arguments sh TEST_CASE_FIXTURE(argument_parser_test_fixture, "default_optional_arguments should add the specified arguments") { sut.default_optional_arguments( - { ap::default_argument::optional::help, - ap::default_argument::optional::input, - ap::default_argument::optional::output } + { ap::default_optarg::help, + ap::default_optarg::input, + ap::default_optarg::output } ); std::string help_flag;