- Added stub help command.
This commit is contained in:
Paul Beckingham 2014-06-20 08:50:06 -04:00
parent 37577fcb03
commit 710128c7d7
3 changed files with 45 additions and 0 deletions

View file

@ -35,6 +35,7 @@
#include <readline/history.h>
#endif
int cmdHelp ();
int cmdDiagnostics ();
////////////////////////////////////////////////////////////////////////////////
@ -61,6 +62,8 @@ static int commandLoop ()
// Dispatch command
int status = 0;
if (closeEnough ("exit", command, 3)) status = 1;
else if (closeEnough ("quit", command, 3)) status = 1;
else if (closeEnough ("help", command, 3)) status = cmdHelp ();
else if (closeEnough ("diagnostics", command, 3)) status = cmdDiagnostics ();
// TODO help