org.icij.extract.cli.tasks.HelpTask Maven / Gradle / Ivy
package org.icij.extract.cli.tasks;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.io.FileUtils;
import org.icij.extract.cli.CommonsTransformer;
import org.icij.extract.cli.Main;
import org.icij.task.DefaultTask;
import org.icij.task.Options;
import org.icij.task.StringOptionParser;
import javax.imageio.ImageIO;
import java.util.Arrays;
import java.util.Set;
public class HelpTask extends DefaultTask {
private final String footer = String.format("%nExtract will use up to %s of memory on this machine.%n%n" +
"Please report issues at: https://github.com/ICIJ/extract/issues.", FileUtils.byteCountToDisplaySize
(Runtime.getRuntime().maxMemory()));
@Override
public Void call(final String[] args) throws Exception {
final String command = args[0];
final DefaultTask
© 2015 - 2025 Weber Informatics LLC | Privacy Policy