CommandLineApp class

Key command-line app class. The entire app lives in this class.

Constructors

CommandLineApp()

Properties

appAuthor String
latefinal
appLicense String
latefinal
appName String
latefinal
appVersion String
latefinal
argumentsDataBase Map<String, dynamic>
latefinal
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addArgument(String argumentName, String helpMessage, bool isActive) → void
Adds an argument to your app!
appHelpMessage() → void
"Batteries-included" app help text! Prints help info about the app when the app is invoked with "help", "--help", or "-h".
appInfoMessage() → void
"Batteries-included" app info text! Prints info about the app when the app is invoked with "info", "--info", or "-i".
appVersionMessage() → void
"Batteries-included" app version text! Prints version info about the app when the app is invoked with "version", "--version", or "-v".
argumentWasUsed(List<String> arguments, String argument) bool
User method to check if an argument was used!
getArgumentData(List<String> arguments, String argument) String
User method to fetch the data of an argument! This will only work if the "isActive" flag is "true".
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runApp(List<String> arguments) → void
This method runs the app! Batteries-included flags of "help", "info", and "version".
toString() String
A string representation of this object.
inherited

Operators

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