io.sarl.lang.core.util
Class CliUtilities
final class CliUtilities
extends java.lang.Object
Command-line Utilities.

TODO: Move to the new version of AFC.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.12
Action Summary
Modifier and type Action and description
static java.lang.String getCommandLineDefinition(String,boolean)
Replies the option for definition a property.
static java.lang.String getCommandLineDefinition(String,long)
Replies the option for definition a property.
static java.lang.String getCommandLineDefinition(String,double)
Replies the option for definition a property.
static java.lang.String getCommandLineDefinition(String,String)
Replies the option for definition a property.
static java.lang.String getCommandLineLastOptionPrefix
Replies the characters to be used to mark the last option on the command line.
static java.lang.String getCommandLineLongOptionPrefix
Replies the characters to be used as long-option prefix on the command line.
static java.lang.String getCommandLineOption(String)
Replies the option prefixed with the characters to be used as option prefix on the command line.
static java.lang.String getCommandLineOption(String,boolean)
Replies the option prefixed with the characters to be used as option prefix on the command line and postfixed with the given boolean value.
static java.lang.String getCommandLineOption(String,long)
Replies the option prefixed with the characters to be used as option prefix on the command line and postfixed with the given boolean value.
static java.lang.String getCommandLineOption(String,double)
Replies the option prefixed with the characters to be used as option prefix on the command line and postfixed with the given boolean value.
static java.lang.String getCommandLineOption(String,String)
Replies the option prefixed with the characters to be used as option prefix on the command line and postfixed with the given boolean value.
static java.lang.String getCommandLineShortOptionPrefix
Replies the characters to be used as short-option prefix on the command line.
static java.lang.String getUnixCommandLineLastOptionPrefix
Replies the characters to be used to mark the last option on the command line.
static java.lang.String getUnixCommandLineLongOptionPrefix
Replies the characters to be used as long-option prefix on the command line on Unix.
static java.lang.String getUnixCommandLineOption(String)
Replies the option prefixed with the characters to be used as option prefix on the command line.
static java.lang.String getUnixCommandLineOption(String,String)
Replies the option prefixed with the characters to be used as option prefix on the command line and postfixed with the given boolean value.
static java.lang.String getUnixCommandLineShortOptionPrefix
Replies the characters to be used as short-option prefix on the command line.
Action Details
getCommandLineDefinition(String,boolean)
def getCommandLineDefinition(String,boolean) : java.lang.String
Replies the option for definition a property. This function is OS dependent.
Parameters:
name - the name of the option.
value - the value to put in the command-line option.
Returns:
the command-line option.
Since:
0.12
getCommandLineDefinition(String,long)
def getCommandLineDefinition(String,long) : java.lang.String
Replies the option for definition a property. This function is OS dependent.
Parameters:
name - the name of the option.
value - the value to put in the command-line option.
Returns:
the command-line option.
Since:
0.12
getCommandLineDefinition(String,double)
def getCommandLineDefinition(String,double) : java.lang.String
Replies the option for definition a property. This function is OS dependent.
Parameters:
name - the name of the option.
value - the value to put in the command-line option.
Returns:
the command-line option.
Since:
0.12
getCommandLineDefinition(String,String)
def getCommandLineDefinition(String,String) : java.lang.String
Replies the option for definition a property. This function is OS dependent.
Parameters:
name - the name of the option.
value - the value to put in the command-line option.
Returns:
the command-line option.
Since:
0.12
getCommandLineLastOptionPrefix
def getCommandLineLastOptionPrefix : java.lang.String
Replies the characters to be used to mark the last option on the command line. This function is OS dependent.
Returns:
the command-line option prefix.
Since:
0.12
getCommandLineLongOptionPrefix
def getCommandLineLongOptionPrefix : java.lang.String
Replies the characters to be used as long-option prefix on the command line. This function is OS dependent.
Returns:
the command-line option prefix.
Since:
0.12
getCommandLineOption(String)
def getCommandLineOption(String) : java.lang.String
Replies the option prefixed with the characters to be used as option prefix on the command line. This function is OS dependent.
Parameters:
name - the name of the option.
Returns:
the command-line option.
Since:
0.12
getCommandLineOption(String,boolean)
def getCommandLineOption(String,boolean) : java.lang.String
Replies the option prefixed with the characters to be used as option prefix on the command line and postfixed with the given boolean value. This function is OS dependent.
Parameters:
name - the name of the option.
value - the value to put in the command-line option.
Returns:
the command-line option.
Since:
0.12
getCommandLineOption(String,long)
def getCommandLineOption(String,long) : java.lang.String
Replies the option prefixed with the characters to be used as option prefix on the command line and postfixed with the given boolean value. This function is OS dependent.
Parameters:
name - the name of the option.
value - the value to put in the command-line option.
Returns:
the command-line option.
Since:
0.12
getCommandLineOption(String,double)
def getCommandLineOption(String,double) : java.lang.String
Replies the option prefixed with the characters to be used as option prefix on the command line and postfixed with the given boolean value. This function is OS dependent.
Parameters:
name - the name of the option.
value - the value to put in the command-line option.
Returns:
the command-line option.
Since:
0.12
getCommandLineOption(String,String)
def getCommandLineOption(String,String) : java.lang.String
Replies the option prefixed with the characters to be used as option prefix on the command line and postfixed with the given boolean value. This function is OS dependent.
Parameters:
name - the name of the option.
value - the value to put in the command-line option.
Returns:
the command-line option.
Since:
0.12
getCommandLineShortOptionPrefix
def getCommandLineShortOptionPrefix : java.lang.String
Replies the characters to be used as short-option prefix on the command line. This function is OS dependent.
Returns:
the command-line option prefix.
Since:
0.12
getUnixCommandLineLastOptionPrefix
def getUnixCommandLineLastOptionPrefix : java.lang.String
Replies the characters to be used to mark the last option on the command line. This function is for Unix.
Returns:
the command-line option prefix.
Since:
0.12
getUnixCommandLineLongOptionPrefix
def getUnixCommandLineLongOptionPrefix : java.lang.String
Replies the characters to be used as long-option prefix on the command line on Unix.
Returns:
the command-line option prefix.
Since:
0.12
getUnixCommandLineOption(String)
def getUnixCommandLineOption(String) : java.lang.String
Replies the option prefixed with the characters to be used as option prefix on the command line. This function is for Unix.
Parameters:
name - the name of the option.
Returns:
the command-line option.
Since:
0.12
getUnixCommandLineOption(String,String)
def getUnixCommandLineOption(String,String) : java.lang.String
Replies the option prefixed with the characters to be used as option prefix on the command line and postfixed with the given boolean value. This function is for Unix.
Parameters:
name - the name of the option.
value - the value to put in the command-line option.
Returns:
the command-line option.
Since:
0.12
getUnixCommandLineShortOptionPrefix
def getUnixCommandLineShortOptionPrefix : java.lang.String
Replies the characters to be used as short-option prefix on the command line. This function is for Unix.
Returns:
the command-line option prefix.
Since:
0.12