summaryrefslogtreecommitdiffstats
path: root/src/hci/shell.c
diff options
context:
space:
mode:
authorMichael Brown2006-12-20 01:44:16 +0100
committerMichael Brown2006-12-20 01:44:16 +0100
commit24f945edce38e26d6e6129a3a36d91522ac8ed7a (patch)
tree2cfa91da48fe328c9eaf7f5dcd2501182b4c051a /src/hci/shell.c
parentRemove obsolete mechanism for including nvo_cmd.o (diff)
downloadipxe-24f945edce38e26d6e6129a3a36d91522ac8ed7a.tar.gz
ipxe-24f945edce38e26d6e6129a3a36d91522ac8ed7a.tar.xz
ipxe-24f945edce38e26d6e6129a3a36d91522ac8ed7a.zip
Add "exit --help" to preempt the pedants.
Diffstat (limited to 'src/hci/shell.c')
-rw-r--r--src/hci/shell.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/hci/shell.c b/src/hci/shell.c
index c30d8018..3b1493fe 100644
--- a/src/hci/shell.c
+++ b/src/hci/shell.c
@@ -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;
}