argparse/test
Even Rouault 84b7b46ce5
Add argument name after 'Too few arguments' error
If a non-positional argument doesn't get the number of required values,
a generic "Too few arguments" error is generated, without its name, when
it is not the last argument (but if it is the last argument, we get its
name)
2024-05-27 19:21:29 +02:00
..
.gitignore
argparse_details.cppm
BUILD.bazel add Bazel support 2024-05-05 15:37:45 +08:00
CMakeLists.txt Add a Argument::hidden() method to prevent an argument from appearing in usage or help 2024-03-16 14:23:51 +01:00
doctest.hpp
main.cpp
README.md
test_actions.cpp
test_append.cpp
test_as_container.cpp
test_bool_operator.cpp
test_choices.cpp Added nargs test for multiple values to a choices() argument 2023-11-13 14:19:55 -08:00
test_compound_arguments.cpp Added flag() shorthand function 2023-10-27 16:37:20 -05:00
test_container_arguments.cpp
test_default_args.cpp
test_default_value.cpp Added flag() shorthand function 2023-10-27 16:37:20 -05:00
test_equals_form.cpp
test_error_reporting.cpp Closes #113, add custom std::ostream& argument to ArgumentParser constructor 2023-11-04 09:31:13 -05:00
test_get.cpp
test_help.cpp Several bug fixes in usage, and improvement in usage and help 2024-03-13 02:09:44 +01:00
test_hidden_alias.cpp Add a ArgumentParser::add_hidden_alias_for() method 2024-03-12 12:08:40 +01:00
test_hidden_argument.cpp Add a Argument::hidden() method to prevent an argument from appearing in usage or help 2024-03-16 14:23:51 +01:00
test_invalid_arguments.cpp
test_is_used.cpp
test_issue_37.cpp
test_mutually_exclusive_group.cpp Marked copy and move constructors as deleted 2023-11-05 18:13:17 -06:00
test_negative_numbers.cpp
test_optional_arguments.cpp Added flag() shorthand function 2023-10-27 16:37:20 -05:00
test_parent_parsers.cpp
test_parse_args.cpp Add argument name after 'Too few arguments' error 2024-05-27 19:21:29 +02:00
test_parse_known_args.cpp
test_positional_arguments.cpp Fix parsing of a program that accepts a positional argument with 1:* cardinality followed by another positional argument with 1:1 2024-04-02 23:35:43 +02:00
test_prefix_chars.cpp Added flag() shorthand function 2023-10-27 16:37:20 -05:00
test_repr.cpp
test_required_arguments.cpp
test_scan.cpp Added support for binary notation, e.g., 0b101 2023-11-05 19:06:50 -06:00
test_store_into.cpp Add Argument::store_into(std::set<int||string> &var) method 2024-04-30 17:30:48 +02:00
test_stringstream.cpp Closes #113, add custom std::ostream& argument to ArgumentParser constructor 2023-11-04 09:31:13 -05:00
test_subparsers.cpp NEW: suppress flag for subcommand 2023-11-05 15:23:15 +03:00
test_utility.hpp
test_version.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