Namespace: cli

cli. cli

Methods


<static> checkCompanionDatabaseIntegrity(binomialNameToCrop)

Parameters:
Name Type Description
binomialNameToCrop Object

<static> convertCompanionDatabaseToCropRelationships(binomialNameToCropDocument)

Parameters:
Name Type Description
binomialNameToCropDocument Object
Returns:
Type
Array.<Object>

<static> debug(message)

Print a message only if in verbose mode.
Parameters:
Name Type Description
message String

<static> getNonOptionArguments()

Returns:
Non-option command line arguments
Type
Array.<String>

<static> getOptionArguments()

Returns:
Option arguments
Type
Array.<String>

<static> log(message)

Print a message to console.
Parameters:
Name Type Description
message String

<static> parseOption(optionName)

Find a command line option either in the form '--optionName=key:value...' or '--optionName=value', and return either an object or a value.
Parameters:
Name Type Description
optionName String
Returns:
Type
Object

<static> parseOptionArray(optionName)

Parse all command line options with the given name, and return an array of values.
Parameters:
Name Type Description
optionName String
Returns:
Type
Array.<Object>

<static> parseOptionValue()

Returns:
Value of the option argument
Type
Object