mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Handle unknown parameters more gracefully.
This commit is contained in:
parent
5042516c74
commit
625583efee
@ -181,6 +181,7 @@ int main(int argc, char *argv[])
|
||||
BOOL FunctionDllUnregisterServer = FALSE;
|
||||
BOOL FunctionRegServer = FALSE;
|
||||
BOOL FunctionUnregServer = FALSE;
|
||||
BOOL FunctionUnknown = FALSE;
|
||||
|
||||
BOOL GotProductCode = FALSE;
|
||||
LPCSTR PackageName = NULL;
|
||||
@ -523,6 +524,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
InstallUILevel = INSTALLUILEVEL_BASIC|INSTALLUILEVEL_PROGRESSONLY;
|
||||
}
|
||||
else if(!strcasecmp(argv[i]+2, "b+!"))
|
||||
{
|
||||
InstallUILevel = INSTALLUILEVEL_BASIC|INSTALLUILEVEL_ENDDIALOG;
|
||||
WINE_FIXME("Unknown modifier: !\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "Unknown option \"%s\" for UI level\n", argv[i]+2);
|
||||
@ -556,6 +562,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
ShowUsage(0);
|
||||
}
|
||||
else if(!strcasecmp(argv[i], "/m"))
|
||||
{
|
||||
FunctionUnknown = TRUE;
|
||||
WINE_FIXME("Unknown parameter /m\n");
|
||||
}
|
||||
else if(!strcasecmp(argv[i], "/D"))
|
||||
{
|
||||
FunctionUnknown = TRUE;
|
||||
WINE_FIXME("Unknown parameter /D\n");
|
||||
}
|
||||
else if(strchr(argv[i], '='))
|
||||
{
|
||||
StringListAppend(&Properties, argv[i]);
|
||||
@ -638,6 +654,10 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
WINE_FIXME( "/unregserver not implemented yet, ignoring\n" );
|
||||
}
|
||||
else if (FunctionUnknown)
|
||||
{
|
||||
WINE_FIXME( "Unknown function, ignoring\n" );
|
||||
}
|
||||
else
|
||||
ShowUsage(1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user