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

add warning option on command line

parent e229d67d
No related branches found
No related tags found
1 merge request!10Resolve "add warning level option on the command line"
......@@ -62,7 +62,7 @@ public class RiseClipseValidatorSCL {
private static void usage() {
console.setLevel( IRiseClipseConsole.INFO_LEVEL );
console.info(
"java -jar RiseClipseValidatorSCL.jar [--info | --verbose] [--make-explicit-links] [<oclFile> | <nsdFile> | <sclFile>]*" );
"java -jar RiseClipseValidatorSCL.jar [--info | --warning | --verbose] [--make-explicit-links] [<oclFile> | <nsdFile> | <sclFile>]*" );
console.info( "Files ending with \".ocl\" are considered OCL files, "
+ "files ending with \\\".nsd\\\" are considered NSD files, "
+ "all others are considered SCL files" );
......@@ -83,6 +83,9 @@ public class RiseClipseValidatorSCL {
if( "--info".equals( args[i] ) ) {
console.setLevel( IRiseClipseConsole.INFO_LEVEL );
}
else if( "--warning".equals( args[i] ) ) {
console.setLevel( IRiseClipseConsole.WARNING_LEVEL );
}
else if( "--verbose".equals( args[i] ) ) {
console.setLevel( IRiseClipseConsole.VERBOSE_LEVEL );
}
......
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