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
master
Marcel Telka 22 years ago
parent 634da66738
commit 4338b29ab7

@ -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 );

Loading…
Cancel
Save