All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jwat.tools.tasks.delete.DeleteTaskCLI Maven / Gradle / Ivy

Go to download

JWAT-Tools uses the available JWAT libraries to make high level tasks available either from command-line or programmatically. Common tasks include: Test, Compress, Decompress, CDX, Arc2Warc. More specialised tasks include: Changed, ContainerMD, Delete, Extract, Interval, PathIndex, Unpack, Headers2CDX.

There is a newer version: 0.7.1
Show newest version
package org.jwat.tools.tasks.delete;

import org.jwat.tools.tasks.TaskCLI;

import com.antiaction.common.cli.CommandLine;

public class DeleteTaskCLI extends TaskCLI {

	public static final String commandName = "delete";

	public static final String commandDescription = "delete files";

	@Override
	public void show_help() {
		System.out.println("jwattools delete [-t] [-o OUTPUT_FILE] ...");
		System.out.println("");
		System.out.println("delete one or more files");
		System.out.println("");
		System.out.println("\tDelete one or more files.");
		System.out.println("\tLinux has this nasty habit of making it hard to delete many files at the same time.");
		System.out.println("");
		System.out.println("options:");
		System.out.println("");
		System.out.println(" -o     output filenames deleted");
		System.out.println("    --dryrun  dry run, does not delete files");
	}

	@Override
	public void runtask(CommandLine cmdLine) {
		DeleteTask task = new DeleteTask();
		task.runtask(DeleteTaskCLIParser.parseArguments(cmdLine));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy