Changeset 30990 for other-projects

Show
Ignore:
Timestamp:
30.10.2016 11:39:31 (3 years ago)
Author:
davidb
Message:

opt name change

Files:
1 modified

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);