--host-version

This commit is contained in:
Linus Dierheimer
2021-03-07 11:58:24 +01:00
parent dbeaa342ba
commit 2240264d02
5 changed files with 27 additions and 17 deletions
+13
View File
@@ -34,6 +34,9 @@
"## OS options:\n" \
"# --os-architecture true\n" \
"\n" \
"## Host options:\n" \
"# --host-version true\n" \
"\n" \
"## Shell options:\n" \
"# --shell-path false\n" \
"\n" \
@@ -82,6 +85,9 @@ static void printHelp()
"OS options:\n"
" --os-architecture <?value>: Show the architecture of the os\n"
"\n"
"Host options:\n"
" --host-version <?value>: Show the version of the host platform, if possible. Most likely, this will be the BIOS version\n"
"\n"
"Shell options:\n"
" --shell-path <?value>: Show the full path of the shell\n"
"\n"
@@ -366,6 +372,13 @@ static void parseOption(FFinstance* instance, FFdata* data, const char* key, con
else
instance->config.osShowArchitecture = parseBoolean(value);
}
else if(strcasecmp(key, "--host-version") == 0)
{
if(value == NULL)
instance->config.hostShowVersion = true;
else
instance->config.hostShowVersion = parseBoolean(value);
}
else if(strcasecmp(key, "--shell-path") == 0)
{
if(value == NULL)