version 1.3, 2014/08/27 15:51:41 |
version 1.4, 2014/08/28 13:37:41 |
|
|
continue; |
continue; |
|
|
if (opt->type == OPTION_ARG || |
if (opt->type == OPTION_ARG || |
|
opt->type == OPTION_ARG_FORMAT || |
opt->type == OPTION_ARG_INT) { |
opt->type == OPTION_ARG_INT) { |
if (++i >= argc) { |
if (++i >= argc) { |
fprintf(stderr, |
fprintf(stderr, |
|
|
switch (opt->type) { |
switch (opt->type) { |
case OPTION_ARG: |
case OPTION_ARG: |
*opt->opt.arg = argv[i]; |
*opt->opt.arg = argv[i]; |
|
break; |
|
|
|
case OPTION_ARG_FORMAT: |
|
*opt->opt.value = str2fmt(argv[i]); |
break; |
break; |
|
|
case OPTION_ARG_INT: |
case OPTION_ARG_INT: |