Skip to content

Commit 3e250e2

Browse files
kshepherdmilanmajchrak
authored andcommitted
Move taskfile -T option to CLI script config only
(cherry picked from commit 00e4979) (cherry picked from commit 27708ea)
1 parent 7a3facf commit 3e250e2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

dspace-api/src/main/java/org/dspace/curate/CurationCliScriptConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public Options getOptions() {
2323
options.addOption("r", "reporter", true,
2424
"relative or absolute path to the desired report file. Use '-' to report to console. If absent, no " +
2525
"reporting");
26+
options.addOption("T", "taskfile", true, "file containing curation task names");
2627
return options;
2728
}
2829
}

dspace-api/src/main/java/org/dspace/curate/CurationClientOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public enum CurationClientOptions {
3131
/**
3232
* This method resolves the CommandLine parameters to figure out which action the curation script should perform
3333
*
34-
* @param commandLine The relevant CommandLine for the curation script
34+
* @param commandLine The relevant CommandLine for the curation script. Note that -T is passed only
35+
* from CurationCliScriptConfig and is not accessible from UI processes
3536
* @return The curation option to be ran, parsed from the CommandLine
3637
*/
3738
protected static CurationClientOptions getClientOption(CommandLine commandLine) {
@@ -54,7 +55,6 @@ protected static Options constructOptions() {
5455
Options options = new Options();
5556

5657
options.addOption("t", "task", true, "curation task name; options: " + getTaskOptions());
57-
options.addOption("T", "taskfile", true, "file containing curation task names");
5858
options.addOption("i", "id", true,
5959
"Id (handle) of object to perform task on, or 'all' to perform on whole repository");
6060
options.addOption("p", "parameter", true, "a task parameter 'NAME=VALUE'");

0 commit comments

Comments
 (0)