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

org.junit.gen5.console.tasks.DisplayHelpTask Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2015-2016 the original author or authors.
 *
 * All rights reserved. This program and the accompanying materials are
 * made available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution and is available at
 *
 * http://www.eclipse.org/legal/epl-v10.html
 */

package org.junit.gen5.console.tasks;

import static org.junit.gen5.commons.meta.API.Usage.Internal;

import java.io.PrintWriter;

import org.junit.gen5.commons.meta.API;
import org.junit.gen5.console.options.CommandLineOptionsParser;

@API(Internal)
public class DisplayHelpTask implements ConsoleTask {

	private final CommandLineOptionsParser parser;

	public DisplayHelpTask(CommandLineOptionsParser parser) {
		this.parser = parser;
	}

	@Override
	public int execute(PrintWriter out) {
		parser.printHelp(out);
		return SUCCESS;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy