Argy class

Manage command line arguments

Constructors

Argy({required List<String> arguments})

Properties

arguments List<String>
Argy requires a named parameter of arguments which are the passed in cli arguments.
final
hashCode int
The hash code for this object.
read-onlyinherited
parsedArgs List<Map<String, String>>
parsedArgs is map of the key values of argument names & values.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
storedArgs List<Map<String, String>>
Stored arguments are added to storedArgs as a list of maps.
final

Methods

add(String arg, String description) → void
Add arguments to storedArgs.
get(String name) String?
Gets an argument by value
getAll() List<Map<String, String>>
Getter for parsedArgs
help() → void
Prints out all cli commands
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse() → void
Parses all command line arguments
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited