From 559b75cc817355801e37b218a7639e8de78e6846 Mon Sep 17 00:00:00 2001 From: bogdanov Date: Thu, 8 Jan 2026 18:56:59 +0300 Subject: [PATCH] Show `-target` flag usage examples in the help --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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:")) { 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")) {