Author: [log in to unmask]
Date: Thu Mar 5 20:23:23 2015
New Revision: 2287
Log:
Throw exception if missing detector name. HPSJAVA-450
Modified:
java/trunk/conditions/src/main/java/org/hps/conditions/cli/CommandLineTool.java
Modified: java/trunk/conditions/src/main/java/org/hps/conditions/cli/CommandLineTool.java
=============================================================================
--- java/trunk/conditions/src/main/java/org/hps/conditions/cli/CommandLineTool.java (original)
+++ java/trunk/conditions/src/main/java/org/hps/conditions/cli/CommandLineTool.java Thu Mar 5 20:23:23 2015
@@ -104,6 +104,8 @@
String detectorName = null;
if (commandLine.hasOption("d")) {
detectorName = commandLine.getOptionValue("d");
+ } else {
+ throw new RuntimeException("Missing -d argument with name of detector.");
}
int runNumber = 0;
if (commandLine.hasOption("r")) {
|