- fix the help message for --very-long-options

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@850 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2003-01-09 09:09:01 +00:00
parent 0b1b8b14f5
commit e60c9d705e
1 changed files with 5 additions and 1 deletions

View File

@ -161,7 +161,11 @@ void print_usage_and_die(void)
break;
}
sprintf(buf, "--%s%s%s", options[i].name, tmp, arg_str);
printf(" %-30s%s\n", buf, option_help[i]);
if (strlen(buf) > 29) {
printf(" %s\n", buf);
buf[0] = '\0';
}
printf(" %-29s %s\n", buf, option_help[i]);
i++;
}
exit(2);