takesArguments property

bool takesArguments

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

bool get takesArguments => true;