Merge pull request #216 from skrobinson/maint-cleaning

Maint cleaning
This commit is contained in:
Pranav 2022-10-11 17:44:45 -05:00 committed by GitHub
commit f53d8690de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -1092,7 +1092,7 @@ foo@bar:/home/dev/$ ./test --bar=BAR --foo
Use the latest argparse in your CMake project without copying any content.
```cmake
cmake_minimum_required(VERSION 3.11)
cmake_minimum_required(VERSION 3.14)
PROJECT(myproject)

View File

@ -1644,11 +1644,11 @@ private:
bool m_is_parsed = false;
std::list<Argument> m_positional_arguments;
std::list<Argument> m_optional_arguments;
std::map<std::string_view, argument_it, std::less<>> m_argument_map;
std::map<std::string_view, argument_it> m_argument_map;
std::string m_parser_path;
std::list<std::reference_wrapper<ArgumentParser>> m_subparsers;
std::map<std::string_view, argument_parser_it, std::less<>> m_subparser_map;
std::map<std::string_view, bool, std::less<>> m_subparser_used;
std::map<std::string_view, argument_parser_it> m_subparser_map;
std::map<std::string_view, bool> m_subparser_used;
};
} // namespace argparse

View File

@ -25,7 +25,6 @@ endif()
function(add_sample NAME)
ADD_EXECUTABLE(ARGPARSE_SAMPLE_${NAME} ${NAME}.cpp)
INCLUDE_DIRECTORIES("../include" ".")
TARGET_LINK_LIBRARIES(ARGPARSE_SAMPLE_${NAME} PRIVATE argparse::argparse)
set_target_properties(ARGPARSE_SAMPLE_${NAME} PROPERTIES OUTPUT_NAME ${NAME})
endfunction()