takesArguments property

  1. @override
bool get takesArguments
override

Whether or not this command takes positional arguments in addition to options.

If false, CommandRunner.run will throw a UsageException if arguments are provided. Defaults to true.

This is intended to be overridden by commands that don't want to receive arguments. It has no effect for branch commands.

Implementation

@override
bool get takesArguments => false;