Skip to content
Snippets Groups Projects
Commit d6cf4c78 authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

avoid NPE if nothing on command line

parent 3e401619
No related branches found
No related tags found
1 merge request!11Resolve "complete validation by NSD"
Pipeline #1268 passed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment