Package com.codetaco.cli
Class CmdLine
- java.lang.Object
-
- com.codetaco.cli.CmdLine
-
public final class CmdLine extends Object
The type Cmd line.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CmdLine.Builder
The type Builder.
-
Constructor Summary
Constructors Constructor Description CmdLine()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CmdLine.Builder
builder()
Builder builder.String
export(ParserType parserType)
Deprecated.String
export(ParserType parserType, String prefix)
Deprecated.boolean
isParsed(String argument)
Is parsed boolean.boolean
isUsage()
Is usage boolean.void
pull()
Deprecated.CmdLine
subparser(String argument)
Subparser cmd line.List<CmdLine>
subparsers(String argument)
Subparsers list.
-
-
-
Method Detail
-
builder
public static CmdLine.Builder builder()
Builder builder.- Returns:
- the builder
-
isParsed
public boolean isParsed(String argument)
Is parsed boolean.- Parameters:
argument
- the argument- Returns:
- the boolean
-
isUsage
public boolean isUsage()
Is usage boolean.- Returns:
- the boolean
-
subparser
public CmdLine subparser(String argument)
Subparser cmd line.- Parameters:
argument
- the argument- Returns:
- the cmd line
-
subparsers
public List<CmdLine> subparsers(String argument)
Subparsers list.- Parameters:
argument
- the argument- Returns:
- the list
-
pull
@Deprecated public void pull()
Deprecated.Pull.
-
export
@Deprecated public String export(ParserType parserType)
Deprecated.Export string.- Parameters:
parserType
- the parser type- Returns:
- the string
-
export
@Deprecated public String export(ParserType parserType, String prefix)
Deprecated.Export string.- Parameters:
parserType
- the parser typeprefix
- the prefix- Returns:
- the string
-
-