diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-02 04:19:08 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-02 04:19:08 +0000 |
| commit | fc7eec4af8c35012effdb62992adc9b49b869c28 (patch) | |
| tree | 8949790dbc7033f189304d4b594cab5226f6f888 /include/util/option_parse.h | |
| parent | 7d44fcb22f8c3817627815322e57dda893f3cab4 (diff) | |
better option sys
Diffstat (limited to 'include/util/option_parse.h')
| -rw-r--r-- | include/util/option_parse.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/util/option_parse.h b/include/util/option_parse.h new file mode 100644 index 0000000..c68c549 --- /dev/null +++ b/include/util/option_parse.h @@ -0,0 +1,21 @@ +#pragma once + +#include <string> +#include <unordered_map> +#include <functional> +#include <utility> + +#include "option.h" + +namespace ov4 +{ + +inline const std::unordered_map<std::string, std::function<void(std::string s)>> option_list = +{ + {"-v", ov4::option::v}, +}; + +void exe_option(char **c_argv); +std::pair<std::string, std::string> option_split(std::string s); + +} |
