文件名称:structopt:通过定义结构来解析命令行参数
文件大小:223KB
文件格式:ZIP
更新时间:2024-02-24 06:42:09
lightweight library reflection cross-platform command-line
通过定义结构来解析命令行参数
快速开始
# include < structopt>
struct Options {
// positional argument
// e.g., ./main
【文件预览】:
structopt-master
----utils()
--------amalgamate()
----structoptConfig.cmake.in(157B)
----LICENSE.visit_struct(1KB)
----img()
--------logo.png(78KB)
----run_tests.sh(433B)
----CMakeLists.txt(4KB)
----CONTRIBUTING.md(314B)
----.travis.yml(3KB)
----LICENSE(1KB)
----structopt.pc.in(179B)
----LICENSE.magic_enum(1KB)
----clang-format.bash(142B)
----single_include.json(756B)
----samples()
--------option_delimiters.cpp(1KB)
--------remaining_arguments.cpp(784B)
--------nested_structures_2.cpp(1KB)
--------enum_class_argument.cpp(706B)
--------positional_and_compound_arguments.cpp(1KB)
--------tuple_arguments.cpp(1KB)
--------printing_help.cpp(555B)
--------float_literals.cpp(416B)
--------CMakeLists.txt(2KB)
--------double_dash_argument.cpp(699B)
--------flag_arguments.cpp(504B)
--------integer_literals.cpp(420B)
--------positional_and_optional_arguments.cpp(595B)
--------pair_argument.cpp(472B)
--------demo.cpp(2KB)
--------positional_arguments.cpp(613B)
--------nested_structures.cpp(1KB)
--------optional_arguments.cpp(674B)
--------compound_arguments.cpp(778B)
----README.md(25KB)
----single_include()
--------structopt()
----.appveyor.yml(553B)
----tests()
--------test_multiple_nested_structs_positional.cpp(4KB)
--------test_enum_positional_argument.cpp(4KB)
--------test_vector_positional_argument.cpp(6KB)
--------test_enum_optional_argument.cpp(2KB)
--------test_unknown_optional_argument.cpp(1KB)
--------test_array_optional_argument.cpp(1KB)
--------test_tuple_optional_argument.cpp(3KB)
--------test_single_optional_argument.cpp(6KB)
--------test_array_positional_argument.cpp(3KB)
--------test_equal_delimiter_optional_argument.cpp(3KB)
--------test_list_positional_argument.cpp(2KB)
--------test_optional_argument_naming.cpp(1KB)
--------test_trailing_positional_arguments.cpp(3KB)
--------test_single_positional_argument.cpp(5KB)
--------test_single_positional_and_optional.cpp(4KB)
--------CMakeLists.txt(2KB)
--------main.cpp(23B)
--------test_tuple_positional_argument.cpp(1KB)
--------test_combined_flag_arguments.cpp(2KB)
--------test_3d_array_positional_argument.cpp(1KB)
--------test_deque_optional_argument.cpp(2KB)
--------test_vector_optional_argument.cpp(2KB)
--------test_nested_struct.cpp(1KB)
--------test_option_delimiter.cpp(2KB)
--------test_deque_positional_argument.cpp(2KB)
--------test_container_adapter_positional_argument.cpp(2KB)
--------test_optional_flag_argument.cpp(986B)
--------test_set_positional_argument.cpp(4KB)
--------doctest.hpp(260KB)
--------test_excess_positional_arguments.cpp(672B)
--------test_double_dash_option_delimiter.cpp(2KB)
----conanfile.py(3KB)
----.gitignore(4KB)
----include()
--------structopt()