Using the example here: http://www.dartdocs.org/documentation/args/0.13.0/index.html
I'm trying to write a command line app, but I get NoSuchMethodError: method not found: 'options' when I try to use this example code. Why isn't options defined for the Command subclass instance? If I'm not supposed to use options then what am I supposed to use to access the options passed to this command?
Here's my code which also fails:
class ShuffleCommand extends Command {
final name = "shuffle";
final description = "Shuffle and choose cards from a deck";
ShuffleCommand() {
argParser
..addFlag('count', abbr: 'c', defaultsTo: "1")
..addOption('deck');
}
void run() {
print(options);
}
}