diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-03 13:28:48 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-03 13:28:48 +0000 |
| commit | 617104adeb89f4581f5810b40c546d94316bc9f9 (patch) | |
| tree | ff40d2c838571afe4294c3aa30df349378a4f7f8 /include | |
| parent | 5a6b17235a10aea87b3b74122df861536a6efdd2 (diff) | |
idk
Diffstat (limited to 'include')
| -rw-r--r-- | include/option.h | 4 | ||||
| -rw-r--r-- | include/util/io.h | 1 | ||||
| -rw-r--r-- | include/util/option_parse.h | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/include/option.h b/include/option.h index b089012..b939a8a 100644 --- a/include/option.h +++ b/include/option.h @@ -7,4 +7,8 @@ namespace ov4::option void v(std::string s); +void p(std::string s); + +void h(std::string s); + } diff --git a/include/util/io.h b/include/util/io.h index 4f55fec..6fb2a29 100644 --- a/include/util/io.h +++ b/include/util/io.h @@ -98,7 +98,6 @@ void safe_output(T x, T_arg ...arg) errno = errno_old; } -void usage(void); void unix_error(const char *msg); void app_error(const char *msg); diff --git a/include/util/option_parse.h b/include/util/option_parse.h index c68c549..7e362e2 100644 --- a/include/util/option_parse.h +++ b/include/util/option_parse.h @@ -13,6 +13,8 @@ namespace ov4 inline const std::unordered_map<std::string, std::function<void(std::string s)>> option_list = { {"-v", ov4::option::v}, + {"-h", ov4::option::h}, + {"-p", ov4::option::p}, }; void exe_option(char **c_argv); |
