jdplus.cruncher.ArgsDecoder2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdplus-main-cli-bin Show documentation
Show all versions of jdplus-main-cli-bin Show documentation
${project.parent.artifactId} - ${project.artifactId}
/*
* Copyright 2018 National Bank of Belgium
*
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved
* by the European Commission - subsequent versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://ec.europa.eu/idabc/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package jdplus.cruncher;
import jdplus.sa.base.api.EstimationPolicyType;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;
import java.nio.file.Files;
import java.util.Properties;
import java.util.concurrent.Callable;
import lombok.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import picocli.CommandLine;
import picocli.jansi.graalvm.AnsiConsole;
/**
*
* @author Philippe Charles
*/
@CommandLine.Command(
name = "jwsacruncher",
description = {
"JWSACruncher is a console tool that re-estimates all the multi-processing defined in a workspace. "
+ "The workspace may have been generated by means of Demetra+ (.NET), of JDemetra+ (Java) or by any user tool.",
"Note that calling this tool without any parameter generates a default config file in the user dir."
},
versionProvider = ArgsDecoder2.ManifestVersionProvider.class,
sortOptions = false,
descriptionHeading = "%n",
parameterListHeading = "%nParameters:%n",
optionListHeading = "%nOptions:%n",
commandListHeading = "%nCommands:%n",
headerHeading = "%n",
mixinStandardHelpOptions = true
)
final class ArgsDecoder2 implements Callable {
@CommandLine.Parameters(
description = "Workspace file."
)
private File workspace;
@CommandLine.Option(
names = {"-x", "-X"},
paramLabel = "",
description = "Config file."
)
private File configFile = null;
@CommandLine.Option(
names = {"-d"},
paramLabel = "
© 2015 - 2024 Weber Informatics LLC | Privacy Policy