From 8b4ad891dce51baa3fb306c617f3368d24600e6d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 29 Apr 2023 21:42:33 +0200 Subject: dedupe command line routines --- src/cmd_line.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/cmd_line.h (limited to 'src/cmd_line.h') diff --git a/src/cmd_line.h b/src/cmd_line.h new file mode 100644 index 0000000..a661825 --- /dev/null +++ b/src/cmd_line.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2023 Egor Tensin + * This file is part of the "cimple" project. + * For details, see https://github.com/egor-tensin/cimple. + * Distributed under the MIT License. + */ + +#ifndef __CMD_LINE_H__ +#define __CMD_LINE_H__ + +const char *get_usage_string(); + +void exit_with_usage(int ec, const char *argv0); +void exit_with_usage_err(const char *argv0, const char *msg); +void exit_with_version(); + +#endif -- cgit v1.2.3