fixing me failing at passing module options to modules
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user