validate method
validate command line arguments
Implementation
@override
bool validate() {
if ((withArgument.isEmpty || p.extension(withArgument) != '.json') &&
fromArgument.isEmpty) {
var codeSample =
'get generate model on home with assets/models/user.json';
throw CliException(LocaleKeys.error_invalid_json.trArgs([withArgument]),
codeSample: codeSample);
}
return true;
}