Groovy Documentation

org.linkedin.groovy.util.cli
[Groovy] Class CliUtils

java.lang.Object
  org.linkedin.groovy.util.cli.CliUtils

class CliUtils

Utilities methods for cli (cli builder)

Authors:
ypujante@linkedin.com


Method Summary
static java.lang.Object parseCliOptions(java.lang.Object params)

Parses the cli options and returns them as well as a ConfigObject where each key is the long option and value is the value of the option

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

parseCliOptions

static java.lang.Object parseCliOptions(java.lang.Object params)
Parses the cli options and returns them as well as a ConfigObject where each key is the long option and value is the value of the option
Parameters:
params.cli - the CliBuilder instance (required)
params.args - the command line arguments (required)
params.configFileOption - the (short) name of an option that would contain a config file to read (optional)
Returns:
a map [config: c, options: o]


 

Groovy Documentation