fixing me failing at passing module options to modules

This commit is contained in:
Chris Punches
2025-03-11 01:42:24 -04:00
parent d47207baae
commit 576ffd5a76
2 changed files with 37 additions and 58 deletions

View File

@@ -135,7 +135,11 @@ Command parse_command(const char* cmd_str) {
return CMD_HELP;
}
if (strcmp(cmd_str, "help") == 0) {
// Check if cmd_str is a help option
if (strcmp(cmd_str, "-h") == 0 || strcmp(cmd_str, "--help") == 0) {
return CMD_HELP;
}
else if (strcmp(cmd_str, "help") == 0) {
return CMD_HELP;
}
else if (strcmp(cmd_str, "create") == 0) {
@@ -187,4 +191,4 @@ int validate_build_options(const BuildOptions& options) {
}
return 0;
}
}