{
assertCorrectNumberOfArgs( args, 0, 1 );
if ( args.size() == 1 )
{
Command subCommand = CommandFactory.getInstance( )
.getCommand( args.getArguments().get(0) );
if ( subCommand == null )
{
err.printf( "Command %s not found.\n", args.getArguments().get(0) );
err.println( "Type 'cloop help' for usage." );
return 1;
}
out.println( subCommand.getDescription( ) );
out.println( );
out.println( subCommand.getUsage( ) );
out.println( );
out.println( subCommand.getExamples( ) );
}
else
{
out.println( getUsage( ) );
}