validate method

  1. @override
bool validate()
override

validate command line arguments

Implementation

@override
bool validate() {
  super.validate();

  if (args.isEmpty) {
    throw CliException(
        'Please, enter the name of a package you wanna install',
        codeSample: codeSample);
  }
  return true;
}