Top Description Methods
org.kohsuke.args4j.spi

public @Interface SubCommand

extends Annotation
Annotations
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .RetentionPolicy

Specifies a single sub-command.
Author
Kohsuke Kawaguchi
See Also
SubCommandHandler

Method Summary

Modifier and TypeMethod and Description
public Class<?>
impl()

The implementation class of this sub command.

public String
name()

Name of the sub-command.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

implback to summary
public Class<?> impl()

The implementation class of this sub command. When a sub-command is selected, this class is instantiated and the rest of the arguments will be parsed against this new instance.

nameback to summary
public String name()

Name of the sub-command. This must appear as-is in the command line for this sub-command to be activated.