mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-01 08:21:12 +00:00
Allow for odin help build etc
This commit is contained in:
@@ -2175,13 +2175,19 @@ gb_internal void remove_temp_files(lbGenerator *gen) {
|
||||
}
|
||||
|
||||
|
||||
gb_internal void print_show_help(String const arg0, String const &command, String optional_flag = {}) {
|
||||
gb_internal void print_show_help(String const arg0, String command, String optional_flag = {}) {
|
||||
if (command == "help" && optional_flag.len != 0 && optional_flag[0] != '-') {
|
||||
command = optional_flag;
|
||||
optional_flag = {};
|
||||
}
|
||||
|
||||
print_usage_line(0, "%.*s is a tool for managing Odin source code.", LIT(arg0));
|
||||
print_usage_line(0, "Usage:");
|
||||
print_usage_line(1, "%.*s %.*s [arguments]", LIT(arg0), LIT(command));
|
||||
print_usage_line(0, "");
|
||||
defer (print_usage_line(0, ""));
|
||||
|
||||
|
||||
if (command == "build") {
|
||||
print_usage_line(1, "build Compiles directory of .odin files as an executable.");
|
||||
print_usage_line(2, "One must contain the program's entry point, all must be in the same package.");
|
||||
|
||||
Reference in New Issue
Block a user