aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-06-29 19:26:11 +0100
committergingerBill <bill@gingerbill.org>2024-06-29 19:26:11 +0100
commit888bf28076eea73b89b3a299523e4371cdf2b6b2 (patch)
tree167640ffc045faf6ff7c12eacd3bea023c59a91f /src/main.cpp
parent103eccf104ca99d5a60ff0d7a141787d6bda88e0 (diff)
`-strict-style` implies `-disallow-do`
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 611890a5c..610f214ff 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1276,6 +1276,7 @@ gb_internal bool parse_build_flags(Array<String> args) {
break;
case BuildFlag_StrictStyle:
build_context.strict_style = true;
+ build_context.disallow_do = true;
break;
case BuildFlag_Short:
build_context.cmd_doc_flags |= CmdDocFlag_Short;
@@ -2353,7 +2354,8 @@ gb_internal void print_show_help(String const arg0, String const &command) {
print_usage_line(2, "Errs on missing trailing commas followed by a newline.");
print_usage_line(2, "Errs on deprecated syntax.");
print_usage_line(2, "Errs when 'case' labels are not in the same column as the associated 'switch' token.");
- print_usage_line(2, "Errs when the attached-brace style in not adhered to (also known as 1TBS).");
+ print_usage_line(2, "Errs when 'case' labels are not in the same column as the associated 'switch' token.");
+ print_usage_line(2, "Disallows the 'do' keyword in the project (same as '-disallow-do').");
print_usage_line(0, "");
print_usage_line(1, "-ignore-warnings");