mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 16:36:11 +00:00
Accept the parameters case-insensitive in shutdown as well
svn path=/trunk/; revision=28937
This commit is contained in:
parent
1540ce885b
commit
acb99f2a9f
|
@ -55,11 +55,25 @@ static struct CommandLineOptions ParseArguments(int argc, TCHAR *argv[])
|
|||
if (argv[i][0] == '-' || argv[i][0] == '/')
|
||||
{
|
||||
switch(argv[i][1]) {
|
||||
case '?': PrintUsage(); exit(0);
|
||||
case 'f': opts.force = TRUE; break;
|
||||
case 'l': opts.logoff = TRUE; break;
|
||||
case 'r': opts.restart = TRUE; break;
|
||||
case 's': opts.shutdown = TRUE; break;
|
||||
case '?':
|
||||
PrintUsage();
|
||||
exit(0);
|
||||
case 'f':
|
||||
case 'F':
|
||||
opts.force = TRUE;
|
||||
break;
|
||||
case 'l':
|
||||
case 'L':
|
||||
opts.logoff = TRUE;
|
||||
break;
|
||||
case 'r':
|
||||
case 'R':
|
||||
opts.restart = TRUE;
|
||||
break;
|
||||
case 's':
|
||||
case 'S':
|
||||
opts.shutdown = TRUE;
|
||||
break;
|
||||
default:
|
||||
// Unknown arguments will exit program.
|
||||
PrintUsage();
|
||||
|
|
Loading…
Reference in a new issue