Skip to content

Commit

Permalink
ALS-4461: Add main args validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Aug 21, 2023
1 parent 93c5a17 commit 3bb4fe0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package edu.harvard.hms.dbmi.avillach.hpds.etl.genotype;

import com.google.common.base.Preconditions;
import edu.harvard.hms.dbmi.avillach.hpds.data.genotype.FileBackedByteIndexedInfoStore;
import edu.harvard.hms.dbmi.avillach.hpds.data.genotype.VariantMasks;
import edu.harvard.hms.dbmi.avillach.hpds.data.genotype.VariantStore;
Expand Down Expand Up @@ -33,7 +34,9 @@ public class GenomicDatasetMergerRunner {
* args[2]: output directory
*/
public static void main(String[] args) throws IOException, ClassNotFoundException, InterruptedException {
// todo :validation
if (args.length != 3) {
throw new IllegalArgumentException("Three arguments must be provided: source directory 1, source directory 2, output directory");
}
genomicDirectory1 = args[0];
genomicDirectory2 = args[1];
String outputDirectory = args[2];
Expand Down

0 comments on commit 3bb4fe0

Please sign in to comment.