aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-01-09 13:04:56 +0000
committerGitHub <noreply@github.com>2026-01-09 13:04:56 +0000
commite88776e00fbb6dec367b2cb54d764c9a52edc15a (patch)
tree0e036d277f973f4747745a6ebfd525c5ce867974 /src/main.cpp
parentfc19df7b1eb55ec1a5fd5a4b7a17894809f296e8 (diff)
parent559b75cc817355801e37b218a7639e8de78e6846 (diff)
Merge pull request #6115 from bbogdan-ov/target-flag-usage-example
Show `-target` flag usage examples in the help
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9a5df8aea..326c4c457 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2971,6 +2971,10 @@ gb_internal int print_show_help(String const arg0, String command, String option
if (check) {
if (print_flag("-target:<string>")) {
print_usage_line(2, "Sets the target for the executable to be built in.");
+ print_usage_line(2, "Examples:");
+ print_usage_line(3, "-target:linux_amd64");
+ print_usage_line(3, "-target:windows_amd64");
+ print_usage_line(3, "-target:\"?\" for a list");
}
if (print_flag("-terse-errors")) {