diff options
| author | gingerBill <bill@gingerbill.org> | 2020-04-30 17:57:21 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-04-30 17:57:21 +0100 |
| commit | 70a66cd559076c1ec3a1cde738a465d79c87e87a (patch) | |
| tree | 99550b1bbde9ed1d2fa3248c4eabef93c3890b99 /src/main.cpp | |
| parent | 832a586b8d02251c8d6e4f6d016d67bbfb2828f5 (diff) | |
Add `-subsystem` to `odin build -help`
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index e467ae95b..f3cb63104 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1090,7 +1090,9 @@ bool parse_build_flags(Array<String> args) { String subsystem = value.value_string; if (str_eq_ignore_case(subsystem, str_lit("console"))) { build_context.use_subsystem_windows = false; - } else if (str_eq_ignore_case(subsystem, str_lit("windows"))) { + } else if (str_eq_ignore_case(subsystem, str_lit("window"))) { + build_context.use_subsystem_windows = true; + } else if (str_eq_ignore_case(subsystem, str_lit("windows"))) { build_context.use_subsystem_windows = true; } else { gb_printf_err("Invalid -subsystem string, got %.*s, expected either 'console' or 'windows'\n", LIT(subsystem)); @@ -1415,6 +1417,15 @@ void print_show_help(String const arg0, String const &command) { print_usage_line(2, "Defines the generated PDB name when -debug is enabled"); print_usage_line(2, "Example: -pdb-name:different.pdb"); print_usage_line(0, ""); + + print_usage_line(1, "-subsystem:<option>") + print_usage_line(2, "[Windows only]"); + print_usage_line(2, "Defines the subsystem for the application"); + print_usage_line(2, "Available options:"); + print_usage_line(3, "console"); + print_usage_line(3, "windows"); + print_usage_line(0, ""); + #endif } } |