Changeset 30990
- Timestamp:
- 2016-10-30T11:39:31+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/hathitrust/solr-extracted-features/trunk/src/main/java/org/hathitrust/PrepareForIngest.java
r30988 r30990 141 141 String output_dir = cmd.getOptionValue("output-dir",null); 142 142 String solr_url = cmd.getOptionValue("solr-url",null); 143 boolean dry_run = cmd.hasOption("dry-run");143 boolean read_only = cmd.hasOption("read-only"); 144 144 145 145 String[] filtered_args = cmd.getArgs(); … … 150 150 } 151 151 152 if (! dry_run&& ((output_dir == null) && (solr_url==null))) {152 if (!read_only && ((output_dir == null) && (solr_url==null))) { 153 153 System.err.println("Need to specify either --solr-url or --output-dir otherwise generated files are not ingested/saved"); 154 154 print_usage(formatter,options);
Note:
See TracChangeset
for help on using the changeset viewer.