Changeset 5490:1f9849496bc2
- Timestamp:
- 2008-08-23 15:25:49 (3 months ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- HEAD
- Message:
-
Whitespace cleanup
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5489
|
r5490
|
|
| 576 | 576 | for (optind = 1; optind < double_dash; ) |
| 577 | 577 | { |
| 578 | | /* We're getopt'ing POSIXLY, so we'll be here every time getopt() |
| 579 | | * encounters a non-option. That could be a file to attach |
| 580 | | * (all non-options between -a and --) or it could be an address |
| 581 | | * (which gets collapsed to the front of argv). |
| 582 | | */ |
| 583 | | for (; optind < argc; optind++) |
| 584 | | { |
| 585 | | if (argv[optind][0] == '-' && argv[optind][1] != '\0') |
| | 578 | /* We're getopt'ing POSIXLY, so we'll be here every time getopt() |
| | 579 | * encounters a non-option. That could be a file to attach |
| | 580 | * (all non-options between -a and --) or it could be an address |
| | 581 | * (which gets collapsed to the front of argv). |
| | 582 | */ |
| | 583 | for (; optind < argc; optind++) |
| 586 | 584 | { |
| 587 | | if (argv[optind][1] == '-' && argv[optind][2] == '\0') |
| 588 | | double_dash = optind; /* quit outer loop after getopt */ |
| 589 | | break; /* drop through to getopt */ |
| | 585 | if (argv[optind][0] == '-' && argv[optind][1] != '\0') |
| | 586 | { |
| | 587 | if (argv[optind][1] == '-' && argv[optind][2] == '\0') |
| | 588 | double_dash = optind; /* quit outer loop after getopt */ |
| | 589 | break; /* drop through to getopt */ |
| | 590 | } |
| | 591 | |
| | 592 | /* non-option, either an attachment or address */ |
| | 593 | if (attach) |
| | 594 | attach = mutt_add_list (attach, argv[optind]); |
| | 595 | else |
| | 596 | argv[nargc++] = argv[optind]; |
| 590 | 597 | } |
| 591 | 598 | |
| 592 | | /* non-option, either an attachment or address */ |
| 593 | | if (attach) |
| 594 | | attach = mutt_add_list (attach, argv[optind]); |
| 595 | | else |
| 596 | | argv[nargc++] = argv[optind]; |
| 597 | | } |
| 598 | | |
| 599 | | if ((i = getopt (argc, argv, "+A:a:b:F:f:c:Dd:e:H:s:i:hm:npQ:RvxyzZ")) != EOF) |
| 600 | | switch (i) |
| 601 | | { |
| | 599 | if ((i = getopt (argc, argv, "+A:a:b:F:f:c:Dd:e:H:s:i:hm:npQ:RvxyzZ")) != EOF) |
| | 600 | switch (i) |
| | 601 | { |
| 602 | 602 | case 'A': |
| 603 | 603 | alias_queries = mutt_add_list (alias_queries, optarg); |
| … |
… |
|
| 700 | 700 | default: |
| 701 | 701 | mutt_usage (); |
| 702 | | } |
| | 702 | } |
| 703 | 703 | } |
| 704 | 704 | |