TerminalShell: remove --terminal-version and --shell-version

This commit is contained in:
李通洲
2023-06-12 14:52:46 +08:00
committed by 李通洲
parent 6a71e0fa75
commit 40a1f75895
9 changed files with 9 additions and 61 deletions
-14
View File
@@ -46,8 +46,6 @@ void ffInitShellOptions(FFShellOptions* options)
{
options->moduleName = FF_SHELL_MODULE_NAME;
ffOptionInitModuleArg(&options->moduleArgs);
options->version = true;
}
bool ffParseShellCommandOptions(FFShellOptions* options, const char* key, const char* value)
@@ -57,12 +55,6 @@ bool ffParseShellCommandOptions(FFShellOptions* options, const char* key, const
if (ffOptionParseModuleArgs(key, subKey, value, &options->moduleArgs))
return true;
if (strcasecmp(subKey, "version") == 0)
{
options->version = ffOptionParseBoolean(value);
return true;
}
return false;
}
@@ -89,12 +81,6 @@ void ffParseShellJsonObject(FFinstance* instance, yyjson_val* module)
if (ffJsonConfigParseModuleArgs(key, val, &options.moduleArgs))
continue;
if (strcasecmp(key, "version") == 0)
{
options.version = yyjson_get_bool(val);
continue;
}
ffPrintError(instance, FF_SHELL_MODULE_NAME, 0, &options.moduleArgs, "Unknown JSON key %s", key);
}
}