Argenius class
Base class Argenius
Constructors
Properties
-
arguments
→ List<
String> -
List of all arguments
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
named
→ Map<
String, String> -
Map of arguments with values
final
-
ordered
→ List<
String> -
List of arguments without names
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
getName(
String argument) → String? -
If
argument
is name of variable, then return clear name without specific head symbols (f.e. '--', '-'). If it's not imposible to parse string then return null -
getNameWithValue(
String argument) → List< String> -
If
argument
is variable name with value, then return next array: "variableName, variableValue" else return empty array. -
hasNameAndValue(
String arg) → bool -
If
arg
string is a name of variable with value and start with '--' then return true -
isNameOfVariable(
String arg) → bool -
If
arg
string is a name of variable and start with '--' then return true -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
parse(
List< String> args) → dynamic -
parse is a basic method to parse command line arguments
args
is list of arguments from app main function. Currently it's parsing next argument types: -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
stringToList(
String toParse) → List< String> -
stringToList parsing
toParse
string to arguments list