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:
parent
52c1b2d700
commit
856cbdebfa
|
@ -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;
|
||||
|
|
|
@ -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 == '?')
|
||||
|
|
|
@ -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 == '?')
|
||||
|
|
|
@ -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 == '?')
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 == '?')
|
||||
|
|
|
@ -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 == '?')
|
||||
|
|
Loading…
Reference in New Issue