validateArgs method
Validates command-specific arguments
Implementation
@override
void validateArgs() {
_validateFeatureName(argResults.rest);
final route = argResults['route'] as String?;
if (route != null && !RegExp(r'^/(?:[a-zA-Z0-9_-]+/?)*$').hasMatch(route)) {
usageException('Use an absolute route path, such as /catalog.');
}
}