From 4338b29ab777e2dfdffd0d900944341c990b1d58 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Sun, 27 Oct 2002 13:18:59 +0000 Subject: [PATCH] Added simple :-) help command and unknown command detection. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@223 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/src/jtag.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jtag/src/jtag.c b/jtag/src/jtag.c index 98af73a2..65f26452 100644 --- a/jtag/src/jtag.c +++ b/jtag/src/jtag.c @@ -82,6 +82,11 @@ main( void ) if (strcmp( t, "quit" ) == 0) break; + if (strcmp( t, "help" ) == 0) { + printf( "help: Please read sources.\n" ); + continue; + } + if (strcmp( t, "detect" ) == 0) { t = get_token( NULL ); if (ps) @@ -162,6 +167,8 @@ main( void ) continue; } + + printf( "%s: unknown command\n", t ); } free( line );