mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +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:
1 parent
7ec3504922
commit
3d93decf6a
1 file changed
+1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user