argparse/test
Zhihao Yuan 77f3bd9b8d
Default --help to print help and exit
The change also fixes a rare bug introduced in 9007958:
when there are duplicated keys, insert_or_update overrides
previously inserted ones, emplace doesn't.

fixes: p-ranav/argparse#59
2019-11-22 16:54:58 -06:00
..
.gitignore
CMakeLists.txt
doctest.hpp
main.cpp
README.md
test_actions.cpp
test_compound_arguments.cpp
test_container_arguments.cpp
test_help.cpp Default --help to print help and exit 2019-11-22 16:54:58 -06:00
test_invalid_arguments.cpp
test_issue_37.cpp
test_negative_numbers.cpp
test_optional_arguments.cpp
test_parent_parsers.cpp
test_parse_args.cpp
test_positional_arguments.cpp
test_required_arguments.cpp
test_utility.hpp
test_value_semantics.cpp

Argparse Tests

Linux

$ mkdir build
$ cd build
$ cmake ../.
$ make
$ ./tests

Windows

  1. Generate Visual Studio solution
$ mkdir build
$ cd build
$ cmake ../. -G "Visual Studio 15 2017"
  1. Open ARGPARSE.sln
  2. Build tests in RELEASE | x64
  3. Run tests.exe