fix short options as well.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1794 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aj 2004-06-18 09:12:50 +00:00
parent 52c1b2d700
commit 856cbdebfa
7 changed files with 7 additions and 7 deletions

View File

@ -336,7 +336,7 @@ int main(int argc, char *const argv[])
const char *opt_driver = NULL;
while (1) {
c = getopt_long(argc, argv, "r:qdc:w", options,
c = getopt_long(argc, argv, "r:vc:w", options,
&long_optind);
if (c == -1)
break;

View File

@ -1072,7 +1072,7 @@ int main(int argc, char * const argv[])
int do_create_pin_file = 0;
while (1) {
c = getopt_long(argc, argv, "P:vslgc:Rk:r:p:u:e:m:dqa:", options, &long_optind);
c = getopt_long(argc, argv, "P:Vslgc:Rk:r:p:u:e:m:va:", options, &long_optind);
if (c == -1)
break;
if (c == '?')

View File

@ -1344,7 +1344,7 @@ int main(int argc, char * const argv[])
printf("OpenSC Explorer version %s\n", sc_get_version());
while (1) {
c = getopt_long(argc, argv, "r:c:dw", options, &long_optind);
c = getopt_long(argc, argv, "r:c:vw", options, &long_optind);
if (c == -1)
break;
if (c == '?')

View File

@ -364,7 +364,7 @@ int main(int argc, char * const argv[])
setbuf(stdout, NULL);
while (1) {
c = getopt_long(argc, argv, "nlfr:qds:DRc:aw", options, &long_optind);
c = getopt_long(argc, argv, "nlfr:vs:DRc:aw", options, &long_optind);
if (c == -1)
break;
if (c == '?')

View File

@ -203,7 +203,7 @@ main(int argc, char * const argv[])
CK_RV rv;
while (1) {
c = getopt_long(argc, argv, "ILMOa:d:e:hi:klm:o:p:scqty:w:z:",
c = getopt_long(argc, argv, "ILMOa:d:e:hi:klm:o:p:scvty:w:z:",
options, &long_optind);
if (c == -1)
break;

View File

@ -459,7 +459,7 @@ int main(int argc, char * const argv[])
struct sc_pkcs15_object *key;
while (1) {
c = getopt_long(argc, argv, "sck:r:i:o:qp:dw", options, &long_optind);
c = getopt_long(argc, argv, "sck:r:i:o:p:vw", options, &long_optind);
if (c == -1)
break;
if (c == '?')

View File

@ -856,7 +856,7 @@ int main(int argc, char * const argv[])
int action_count = 0;
while (1) {
c = getopt_long(argc, argv, "r:cuko:qda:LR:Cw", options, &long_optind);
c = getopt_long(argc, argv, "r:cuko:va:LR:Cw", options, &long_optind);
if (c == -1)
break;
if (c == '?')