account_cmd_parser 1.0.0 account_cmd_parser: ^1.0.0 copied to clipboard
A wrapper of ArgParser to parse command-line arguments or console inputs to a predefined Account model.
AccountCmdParser #
Features #
This package is a wrapper of ArgParser
:
- Parse command-line arguments to
Account(email, password)
model - Hint and parse console inputs to
Account(email, password)
model if there are no runtime command-line arguments passed in
Getting Started #
Add the following to your pubspec.yaml
:
dependencies:
account_cmd_parser: any
Usage #
void main(List<String> arguments) {
final accountCmdParser = AccountArgParser();
Account account = accountCmdParser.parse(arguments: arguments);
}