mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
Add "exit --help" to preempt the pedants.
This commit is contained in:
@@ -39,8 +39,15 @@ static const char shell_prompt[] = "gPXE> ";
|
|||||||
static int exit_flag = 0;
|
static int exit_flag = 0;
|
||||||
|
|
||||||
/** "exit" command body */
|
/** "exit" command body */
|
||||||
static int exit_exec ( int argc __unused, char **argv __unused ) {
|
static int exit_exec ( int argc, char **argv __unused ) {
|
||||||
exit_flag = 1;
|
|
||||||
|
if ( argc == 1 ) {
|
||||||
|
exit_flag = 1;
|
||||||
|
} else {
|
||||||
|
printf ( "Usage: exit\n"
|
||||||
|
"Exits the command shell\n" );
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user