summaryrefslogtreecommitdiffstats
path: root/main/main.h
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-02-15 21:37:48 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2024-02-01 23:44:29 +0100
commitf7f51bdd7a5b73143ef126c85f767cb5d5b54e84 (patch)
tree0840ab31214a9663221af163681b555ba46db2da /main/main.h
parent9adb7c7d130c6d4eb0e80b92d6eebd71fac3384d (diff)
downloadredot-engine-f7f51bdd7a5b73143ef126c85f767cb5d5b54e84.tar.gz
Add colors to the command-line help
Diffstat (limited to 'main/main.h')
-rw-r--r--main/main.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/main.h b/main/main.h
index cc0655cd02..09cc0feae6 100644
--- a/main/main.h
+++ b/main/main.h
@@ -39,6 +39,17 @@ template <class T>
class Vector;
class Main {
+ enum CLIOptionAvailability {
+ CLI_OPTION_AVAILABILITY_EDITOR,
+ CLI_OPTION_AVAILABILITY_TEMPLATE_DEBUG,
+ CLI_OPTION_AVAILABILITY_TEMPLATE_RELEASE,
+ CLI_OPTION_AVAILABILITY_HIDDEN,
+ };
+
+ static void print_help_copyright(const char *p_notice);
+ static void print_help_title(const char *p_title);
+ static void print_help_option(const char *p_option, const char *p_description, CLIOptionAvailability p_availability = CLI_OPTION_AVAILABILITY_TEMPLATE_RELEASE);
+ static String format_help_option(const char *p_option);
static void print_help(const char *p_binary);
static uint64_t last_ticks;
static uint32_t hide_print_fps_attempts;