package io.rouz.task.cli;

import io.rouz.task.Task;

import joptsimple.OptionParser;

/**
 * Used to create a {@link Task<T>} by parsing arguments from a String array.
 *
 * Use with {@link Cli}.
 */
public interface TaskConstructor<T> {

  /**
   * @return The name of the task being created
   */
  String name();

  /**
   * Create an instance of the task by parsing the arguments from a String array
   *
   * @param args  The arguments to parse
   * @return an instance of the task
   */
  Task<T> create(String... args);

  /**
   * @return The underlying {@link joptsimple.OptionParser} for this task constructor
   */
  OptionParser parser();
}

@@ -115,19 +115,16 @@
 ink Task
-%3CT%3E
 %7D by par

fix javadoc error