Add "exit --help" to preempt the pedants.

pull/1/head
Michael Brown 2006-12-20 00:44:16 +00:00
parent d7cffd33e1
commit 24f945edce
1 changed files with 9 additions and 2 deletions

View File

@ -39,8 +39,15 @@ static const char shell_prompt[] = "gPXE> ";
static int exit_flag = 0;
/** "exit" command body */
static int exit_exec ( int argc __unused, char **argv __unused ) {
exit_flag = 1;
static int exit_exec ( int argc, char **argv __unused ) {
if ( argc == 1 ) {
exit_flag = 1;
} else {
printf ( "Usage: exit\n"
"Exits the command shell\n" );
}
return 0;
}