2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

print-short-help after parse error in chip name

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1047 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker
2001-03-25 18:28:15 +00:00
parent 7ec3504922
commit 3d93decf6a

View File

@@ -188,6 +188,7 @@ int main (int argc, char *argv[])
for(i = optind; i < argc; i++)
if ((res = sensors_parse_chip_name(argv[i],chips+chips_count))) {
fprintf(stderr,"Parse error in chip name `%s'\n",argv[i]);
print_short_help();
exit(1);
} else if (++chips_count == CHIPS_MAX) {
fprintf(stderr,"Too many chips on command line!\n");