Skip to content
Snippets Groups Projects
Commit 5886f44d authored by Wei Liu's avatar Wei Liu
Browse files

Rename

parent 2c96a871
No related branches found
No related tags found
No related merge requests found
......@@ -20,10 +20,10 @@ import unimelb.mf.client.session.MFSession;
import unimelb.picocli.converters.DateTimeConverter;
import unimelb.picocli.converters.PathConverter;
@Command(name = "instrument-upload-list", abbreviateSynopsis = true, synopsisHeading = "\nUSAGE:\n ", parameterListHeading = "\nPARAMETERS:\n", optionListHeading = "\nOPTIONS:\n", separator = " ", sortOptions = false)
public class InstrumentUploadList implements MFCommand {
@Command(name = "instrument-upload-find", abbreviateSynopsis = true, synopsisHeading = "\nUSAGE:\n ", parameterListHeading = "\nPARAMETERS:\n", optionListHeading = "\nOPTIONS:\n", separator = " ", sortOptions = false)
public class InstrumentUploadFind implements MFCommand {
public static final String APPLICATION_NAME = "instrument-upload-list";
public static final String APPLICATION_NAME = "instrument-upload-find";
@Option(names = {
"--mf.config" }, paramLabel = "<mflux.cfg>", description = "Mediaflux server configuration file. Defaults to $HOME/.Arcitecta/mflux.cfg", required = false, converter = PathConverter.MustBeRegularFile.class)
......@@ -63,7 +63,7 @@ public class InstrumentUploadList implements MFCommand {
@Override
public MFSession authenticate() throws Throwable {
MFConfigBuilder mfcb = new MFConfigBuilder();
mfcb.setApp(InstrumentUploadList.APPLICATION_NAME);
mfcb.setApp(InstrumentUploadFind.APPLICATION_NAME);
if (this.mfCFG != null) {
mfcb.loadFromConfigFile(mfCFG.toFile());
} else {
......@@ -208,7 +208,7 @@ public class InstrumentUploadList implements MFCommand {
}
public static void main(String[] args) {
CommandLine cl = new CommandLine(new InstrumentUploadList());
CommandLine cl = new CommandLine(new InstrumentUploadFind());
cl.setExecutionExceptionHandler(new IExecutionExceptionHandler() {
@Override
public int handleExecutionException(Exception ex, CommandLine commandLine, ParseResult parseResult)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment