Changeset 30990


Ignore:
Timestamp:
2016-10-30T11:39:31+13:00 (6 years ago)
Author:
davidb
Message:

opt name change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/solr-extracted-features/trunk/src/main/java/org/hathitrust/PrepareForIngest.java

    r30988 r30990  
    141141        String output_dir = cmd.getOptionValue("output-dir",null);
    142142        String solr_url   = cmd.getOptionValue("solr-url",null);
    143         boolean dry_run   = cmd.hasOption("dry-run");
     143        boolean read_only   = cmd.hasOption("read-only");
    144144       
    145145        String[] filtered_args = cmd.getArgs();
     
    150150        }
    151151       
    152         if (!dry_run && ((output_dir == null) && (solr_url==null))) {
     152        if (!read_only && ((output_dir == null) && (solr_url==null))) {
    153153            System.err.println("Need to specify either --solr-url or --output-dir otherwise generated files are not ingested/saved");
    154154            print_usage(formatter,options);
Note: See TracChangeset for help on using the changeset viewer.