Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BobHanson committed Nov 5, 2024
1 parent 7dd5fef commit fbec9bc
Showing 1 changed file with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ public ObjectParser next() {
*/
private FAIRSpecExtractorHelperI helper;

@Override
protected FAIRSpecFindingAidHelperI getHelper() {
return helper;
}

/**
* the IFD-extract.json script
*/
Expand Down Expand Up @@ -2825,26 +2830,6 @@ protected void writeBytesToFile(byte[] bytes, File f) throws IOException {
FAIRSpecUtilities.writeBytesToFile(bytes, f);
}

/**
* Minimal command-line interface for now. There are several flags set from
* ExtractorTest. Right now these are not included in the options, and we also
* need to use proper -x or --xxxx flags.
*
* Just haven't implemented that yet.
*
* @param args [0] extractionFile.json, [1] sourcePath, [2] targetDir
*
*/
public static void main(String[] args) {

if (args.length == 0) {
System.out.println(getCommandLineHelp());
return;
}
// just run one IFD-extract.json
runExtraction(args, null, -1, -1);
}

/**
* Run a full extraction based on arguments, possibly a test set
*
Expand Down Expand Up @@ -3060,9 +3045,24 @@ protected String dumpFlags() {
return s;
}

@Override
protected FAIRSpecFindingAidHelperI getHelper() {
return helper;
/**
* Minimal command-line interface for now. There are several flags set from
* ExtractorTest. Right now these are not included in the options, and we also
* need to use proper -x or --xxxx flags.
*
* Just haven't implemented that yet.
*
* @param args [0] extractionFile.json, [1] sourcePath, [2] targetDir
*
*/
public static void main(String[] args) {

if (args.length == 0) {
System.out.println(getCommandLineHelp());
return;
}
// just run one IFD-extract.json
runExtraction(args, null, -1, -1);
}

}

0 comments on commit fbec9bc

Please sign in to comment.