| | |
| | | */ |
| | | public class SubCommand |
| | | { |
| | | // Indicates whether this subCommand should be hidden in the usage |
| | | // information. |
| | | private boolean isHidden; |
| | | |
| | | // The mapping between the short argument IDs and the arguments for this |
| | | // subcommand. |
| | | private HashMap<Character,Argument> shortIDMap; |
| | |
| | | this.minTrailingArguments = minTrailingArguments; |
| | | this.maxTrailingArguments = maxTrailingArguments; |
| | | this.trailingArgsDisplayName = trailingArgsDisplayName; |
| | | this.isHidden = false; |
| | | |
| | | String nameToCheck = name; |
| | | if (parser.longArgumentsCaseSensitive()) |
| | |
| | | { |
| | | return parser.getTrailingArguments(); |
| | | } |
| | | |
| | | /** |
| | | * Indicates whether this subcommand should be hidden from the usage |
| | | * information. |
| | | * |
| | | * @return <CODE>true</CODE> if this subcommand should be hidden |
| | | * from the usage information, or <CODE>false</CODE> if |
| | | * not. |
| | | */ |
| | | public boolean isHidden() |
| | | { |
| | | return isHidden; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Specifies whether this subcommand should be hidden from the usage |
| | | * information. |
| | | * |
| | | * @param isHidden |
| | | * Indicates whether this subcommand should be hidden from |
| | | * the usage information. |
| | | */ |
| | | public void setHidden(boolean isHidden) |
| | | { |
| | | this.isHidden = isHidden; |
| | | } |
| | | } |
| | | |