validate method
validate command line arguments
Implementation
@override
bool validate() {
super.validate();
if (args.length > 2) {
var unnecessaryParameter = args.skip(2).toList();
throw CliException(
LocaleKeys.error_unnecessary_parameter.trArgsPlural(
LocaleKeys.error_unnecessary_parameter_plural,
unnecessaryParameter.length,
[unnecessaryParameter.toString()],
),
codeSample: codeSample);
}
return true;
}