├── .bazelrc ├── .clang-format ├── .clang-tidy ├── .github └── workflows │ ├── ci.yml │ ├── tidy-analysis-stage-01.yml │ └── tidy-analysis-stage-02.yml ├── .gitignore ├── .stylua.toml ├── .travis.yml ├── BUILD.bazel ├── CMakeLists.txt ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── WORKSPACE.bazel ├── clang_format.bash ├── conanfile.py ├── include └── argparse │ └── argparse.hpp ├── module └── argparse.cppm ├── packaging └── pkgconfig.pc.in ├── samples ├── BUILD.bazel ├── CMakeLists.txt ├── add_sample.bzl ├── compound_arguments.cpp ├── custom_assignment_characters.cpp ├── custom_prefix_characters.cpp ├── description_epilog_metavar.cpp ├── gathering_remaining_arguments.cpp ├── is_used.cpp ├── joining_repeated_optional_arguments.cpp ├── list_of_arguments.cpp ├── negative_numbers.cpp ├── optional_flag_argument.cpp ├── parse_known_args.cpp ├── positional_argument.cpp ├── repeating_argument_to_increase_value.cpp ├── required_optional_argument.cpp └── subcommands.cpp ├── test ├── .gitignore ├── BUILD.bazel ├── CMakeLists.txt ├── README.md ├── argparse_details.cppm ├── doctest.hpp ├── main.cpp ├── test_actions.cpp ├── test_append.cpp ├── test_as_container.cpp ├── test_bool_operator.cpp ├── test_choices.cpp ├── test_compound_arguments.cpp ├── test_container_arguments.cpp ├── test_default_args.cpp ├── test_default_value.cpp ├── test_equals_form.cpp ├── test_error_reporting.cpp ├── test_get.cpp ├── test_help.cpp ├── test_hidden_alias.cpp ├── test_hidden_argument.cpp ├── test_invalid_arguments.cpp ├── test_is_used.cpp ├── test_issue_37.cpp ├── test_mutually_exclusive_group.cpp ├── test_negative_numbers.cpp ├── test_optional_arguments.cpp ├── test_parent_parsers.cpp ├── test_parse_args.cpp ├── test_parse_known_args.cpp ├── test_positional_arguments.cpp ├── test_prefix_chars.cpp ├── test_repr.cpp ├── test_required_arguments.cpp ├── test_scan.cpp ├── test_store_into.cpp ├── test_stringstream.cpp ├── test_subparsers.cpp ├── test_utility.hpp └── test_version.cpp ├── tools ├── build.bat └── build.sh └── xmake.lua /.bazelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/.bazelrc -------------------------------------------------------------------------------- /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/.clang-format -------------------------------------------------------------------------------- /.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/.clang-tidy -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/tidy-analysis-stage-01.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/.github/workflows/tidy-analysis-stage-01.yml -------------------------------------------------------------------------------- /.github/workflows/tidy-analysis-stage-02.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/.github/workflows/tidy-analysis-stage-02.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/.gitignore -------------------------------------------------------------------------------- /.stylua.toml: -------------------------------------------------------------------------------- 1 | indent_type = "Spaces" 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/.travis.yml -------------------------------------------------------------------------------- /BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/BUILD.bazel -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/README.md -------------------------------------------------------------------------------- /WORKSPACE.bazel: -------------------------------------------------------------------------------- 1 | workspace(name="argparse") -------------------------------------------------------------------------------- /clang_format.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/clang_format.bash -------------------------------------------------------------------------------- /conanfile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/conanfile.py -------------------------------------------------------------------------------- /include/argparse/argparse.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/include/argparse/argparse.hpp -------------------------------------------------------------------------------- /module/argparse.cppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/module/argparse.cppm -------------------------------------------------------------------------------- /packaging/pkgconfig.pc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/packaging/pkgconfig.pc.in -------------------------------------------------------------------------------- /samples/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/BUILD.bazel -------------------------------------------------------------------------------- /samples/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/CMakeLists.txt -------------------------------------------------------------------------------- /samples/add_sample.bzl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/add_sample.bzl -------------------------------------------------------------------------------- /samples/compound_arguments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/compound_arguments.cpp -------------------------------------------------------------------------------- /samples/custom_assignment_characters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/custom_assignment_characters.cpp -------------------------------------------------------------------------------- /samples/custom_prefix_characters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/custom_prefix_characters.cpp -------------------------------------------------------------------------------- /samples/description_epilog_metavar.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/description_epilog_metavar.cpp -------------------------------------------------------------------------------- /samples/gathering_remaining_arguments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/gathering_remaining_arguments.cpp -------------------------------------------------------------------------------- /samples/is_used.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/is_used.cpp -------------------------------------------------------------------------------- /samples/joining_repeated_optional_arguments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/joining_repeated_optional_arguments.cpp -------------------------------------------------------------------------------- /samples/list_of_arguments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/list_of_arguments.cpp -------------------------------------------------------------------------------- /samples/negative_numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/negative_numbers.cpp -------------------------------------------------------------------------------- /samples/optional_flag_argument.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/optional_flag_argument.cpp -------------------------------------------------------------------------------- /samples/parse_known_args.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/parse_known_args.cpp -------------------------------------------------------------------------------- /samples/positional_argument.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/positional_argument.cpp -------------------------------------------------------------------------------- /samples/repeating_argument_to_increase_value.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/repeating_argument_to_increase_value.cpp -------------------------------------------------------------------------------- /samples/required_optional_argument.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/required_optional_argument.cpp -------------------------------------------------------------------------------- /samples/subcommands.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/samples/subcommands.cpp -------------------------------------------------------------------------------- /test/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/.gitignore -------------------------------------------------------------------------------- /test/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/BUILD.bazel -------------------------------------------------------------------------------- /test/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/CMakeLists.txt -------------------------------------------------------------------------------- /test/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/README.md -------------------------------------------------------------------------------- /test/argparse_details.cppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/argparse_details.cppm -------------------------------------------------------------------------------- /test/doctest.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/doctest.hpp -------------------------------------------------------------------------------- /test/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /test/test_actions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_actions.cpp -------------------------------------------------------------------------------- /test/test_append.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_append.cpp -------------------------------------------------------------------------------- /test/test_as_container.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_as_container.cpp -------------------------------------------------------------------------------- /test/test_bool_operator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_bool_operator.cpp -------------------------------------------------------------------------------- /test/test_choices.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_choices.cpp -------------------------------------------------------------------------------- /test/test_compound_arguments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_compound_arguments.cpp -------------------------------------------------------------------------------- /test/test_container_arguments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_container_arguments.cpp -------------------------------------------------------------------------------- /test/test_default_args.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_default_args.cpp -------------------------------------------------------------------------------- /test/test_default_value.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_default_value.cpp -------------------------------------------------------------------------------- /test/test_equals_form.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_equals_form.cpp -------------------------------------------------------------------------------- /test/test_error_reporting.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_error_reporting.cpp -------------------------------------------------------------------------------- /test/test_get.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_get.cpp -------------------------------------------------------------------------------- /test/test_help.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_help.cpp -------------------------------------------------------------------------------- /test/test_hidden_alias.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_hidden_alias.cpp -------------------------------------------------------------------------------- /test/test_hidden_argument.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_hidden_argument.cpp -------------------------------------------------------------------------------- /test/test_invalid_arguments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_invalid_arguments.cpp -------------------------------------------------------------------------------- /test/test_is_used.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_is_used.cpp -------------------------------------------------------------------------------- /test/test_issue_37.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_issue_37.cpp -------------------------------------------------------------------------------- /test/test_mutually_exclusive_group.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_mutually_exclusive_group.cpp -------------------------------------------------------------------------------- /test/test_negative_numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_negative_numbers.cpp -------------------------------------------------------------------------------- /test/test_optional_arguments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_optional_arguments.cpp -------------------------------------------------------------------------------- /test/test_parent_parsers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_parent_parsers.cpp -------------------------------------------------------------------------------- /test/test_parse_args.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_parse_args.cpp -------------------------------------------------------------------------------- /test/test_parse_known_args.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_parse_known_args.cpp -------------------------------------------------------------------------------- /test/test_positional_arguments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_positional_arguments.cpp -------------------------------------------------------------------------------- /test/test_prefix_chars.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_prefix_chars.cpp -------------------------------------------------------------------------------- /test/test_repr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_repr.cpp -------------------------------------------------------------------------------- /test/test_required_arguments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_required_arguments.cpp -------------------------------------------------------------------------------- /test/test_scan.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_scan.cpp -------------------------------------------------------------------------------- /test/test_store_into.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_store_into.cpp -------------------------------------------------------------------------------- /test/test_stringstream.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_stringstream.cpp -------------------------------------------------------------------------------- /test/test_subparsers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_subparsers.cpp -------------------------------------------------------------------------------- /test/test_utility.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_utility.hpp -------------------------------------------------------------------------------- /test/test_version.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/test/test_version.cpp -------------------------------------------------------------------------------- /tools/build.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/tools/build.bat -------------------------------------------------------------------------------- /tools/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/tools/build.sh -------------------------------------------------------------------------------- /xmake.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/p-ranav/argparse/HEAD/xmake.lua --------------------------------------------------------------------------------