Commit d6cf4c78 authored by Dominique Marcadet's avatar Dominique Marcadet

avoid NPE if nothing on command line

parent 3e401619
Pipeline #7629 passed with stages
in 26 seconds
......@@ -63,7 +63,7 @@ public class RiseClipseValidatorSCL {
private static void usage() {
console.setLevel( IRiseClipseConsole.INFO_LEVEL );
console.info( "java -jar RiseClipseValidatorSCL.jar --help" );
console.info( "java -jar RiseClipseValidatorSCL.jar [--verbose | --info | --warning | --error] [--make-explicit-links] (<oclFile> | <nsdFile> | <sclFile>)*" );
console.info( "java -jar RiseClipseValidatorSCL.jar [--verbose | --info | --warning | --error] [--make-explicit-links] (<oclFile> | <nsdFile> | <sclFile>)+" );
console.info( "Files ending with \".ocl\" are considered OCL files, "
+ "files ending with \".nsd\" are considered NSD files, "
+ "files ending with \".nsdoc\" are considered NSDoc files, "
......@@ -102,7 +102,10 @@ public class RiseClipseValidatorSCL {
public static void main( @NonNull String[] args ) {
if( args.length == 0 ) usage();
if( args.length == 0 ) {
console = new TextRiseClipseConsole( false );
usage();
}
boolean makeExplicitLinks = false;
boolean useColor = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment