setlocale(LC_ALL, "");
ret = handle_plugin(argc - 1, &argv[1], nvme.extensions);
- if (ret == -EINVAL)
+ if (ret == -ENOTTY)
general_help(&builtin);
return ret;
/* Check extensions only if this is running the built-in plugin */
if (plugin->name) {
printf("ERROR: Invalid sub-command '%s' for plugin %s\n", str, plugin->name);
- return -EINVAL;
+ return -ENOTTY;
}
extension = plugin->next;
extension = extension->next;
}
printf("ERROR: Invalid sub-command '%s'\n", str);
- return -EINVAL;
+ return -ENOTTY;
}