| ... | @@ -20,9 +20,9 @@ static int usage(const char *arg0) { | ... | @@ -20,9 +20,9 @@ static int usage(const char *arg0) { |
| 20 | fprintf(stderr, "Usage: %s [command] [options]\n" | 20 | fprintf(stderr, "Usage: %s [command] [options]\n" |
| 21 | "Commands:\n" | 21 | "Commands:\n" |
| 22 | " build build project from build.zig\n" | 22 | " build build project from build.zig\n" |
| 23 | " build_exe [source] create executable from source or object files\n" | 23 | " build-exe [source] create executable from source or object files\n" |
| 24 | " build_lib [source] create library from source or object files\n" | 24 | " build-lib [source] create library from source or object files\n" |
| 25 | " build_obj [source] create object from source or assembly\n" | 25 | " build-obj [source] create object from source or assembly\n" |
| 26 | " parsec [source] convert c code to zig code\n" | 26 | " parsec [source] convert c code to zig code\n" |
| 27 | " targets list available compilation targets\n" | 27 | " targets list available compilation targets\n" |
| 28 | " test [source] create and run a test build\n" | 28 | " test [source] create and run a test build\n" |
| ... | @@ -457,13 +457,13 @@ int main(int argc, char **argv) { | ... | @@ -457,13 +457,13 @@ int main(int argc, char **argv) { |
| 457 | } | 457 | } |
| 458 | } | 458 | } |
| 459 | } else if (cmd == CmdInvalid) { | 459 | } else if (cmd == CmdInvalid) { |
| 460 | if (strcmp(arg, "build_exe") == 0) { | 460 | if (strcmp(arg, "build-exe") == 0) { |
| 461 | cmd = CmdBuild; | 461 | cmd = CmdBuild; |
| 462 | out_type = OutTypeExe; | 462 | out_type = OutTypeExe; |
| 463 | } else if (strcmp(arg, "build_obj") == 0) { | 463 | } else if (strcmp(arg, "build-obj") == 0) { |
| 464 | cmd = CmdBuild; | 464 | cmd = CmdBuild; |
| 465 | out_type = OutTypeObj; | 465 | out_type = OutTypeObj; |
| 466 | } else if (strcmp(arg, "build_lib") == 0) { | 466 | } else if (strcmp(arg, "build-lib") == 0) { |
| 467 | cmd = CmdBuild; | 467 | cmd = CmdBuild; |
| 468 | out_type = OutTypeLib; | 468 | out_type = OutTypeLib; |
| 469 | } else if (strcmp(arg, "version") == 0) { | 469 | } else if (strcmp(arg, "version") == 0) { |