public class OptionHandler extends Object
OptionParsingCommand to parse options and run the command.OptionParsingCommand, 
run(OptionSet)| Constructor and Description | 
|---|
OptionHandler()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getHelp()  | 
Collection<OptionHelp> | 
getOptionsHelp()  | 
joptsimple.OptionParser | 
getParser()  | 
joptsimple.OptionSpecBuilder | 
option(List<String> aliases,
      String description)  | 
joptsimple.OptionSpecBuilder | 
option(String name,
      String description)  | 
protected void | 
options()  | 
protected ExitStatus | 
run(joptsimple.OptionSet options)
Run the command using the specified parsed  
OptionSet. | 
ExitStatus | 
run(String... args)  | 
public joptsimple.OptionParser getParser()
protected void options()
public final ExitStatus run(String... args) throws Exception
Exceptionprotected ExitStatus run(joptsimple.OptionSet options) throws Exception
OptionSet.options - the parsed option setException - in case of errorspublic String getHelp()
public Collection<OptionHelp> getOptionsHelp()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.