com.beust.jcommander
Annotation Type Parameters


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Parameters

An annotation used to specify settings for parameter parsing.

Author:
cbeust

Optional Element Summary
 java.lang.String commandDescription
          If the annotated class was added to JCommander as a command with JCommander.addCommand(java.lang.String, java.lang.Object), then this string will be displayed in the description when @{link JCommander#usage} is invoked.
 java.lang.String commandDescriptionKey
           
 java.lang.String[] commandNames
          An array of allowed command names.
 java.lang.String optionPrefixes
          What characters an option starts with.
 java.lang.String resourceBundle
          The name of the resource bundle to use for this class.
 java.lang.String separators
          The character(s) that separate options.
 

resourceBundle

public abstract java.lang.String resourceBundle
The name of the resource bundle to use for this class.

Default:
""

separators

public abstract java.lang.String separators
The character(s) that separate options.

Default:
" "

optionPrefixes

public abstract java.lang.String optionPrefixes
What characters an option starts with.

Default:
"-"

commandDescription

public abstract java.lang.String commandDescription
If the annotated class was added to JCommander as a command with JCommander.addCommand(java.lang.String, java.lang.Object), then this string will be displayed in the description when @{link JCommander#usage} is invoked.

Default:
""

commandDescriptionKey

public abstract java.lang.String commandDescriptionKey
Returns:
the key used to find the command description in the resource bundle.
Default:
""

commandNames

public abstract java.lang.String[] commandNames
An array of allowed command names.

Default:
{}


Copyright © 2013. All Rights Reserved.