http://git.etherboot.org
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7cffd3
)
Add "exit --help" to preempt the pedants.
author
Michael Brown
<mcb30@etherboot.org>
Wed, 20 Dec 2006 00:44:16 +0000
(
00:44
+0000)
committer
Michael Brown
<mcb30@etherboot.org>
Wed, 20 Dec 2006 00:44:16 +0000
(
00:44
+0000)
src/hci/shell.c
patch
|
blob
|
history
diff --git
a/src/hci/shell.c
b/src/hci/shell.c
index
c30d801
..
3b1493f
100644
(file)
--- 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;
}