aboutsummaryrefslogtreecommitdiffstats
path: root/get-contact-emails.c
diff options
context:
space:
mode:
Diffstat (limited to 'get-contact-emails.c')
-rw-r--r--get-contact-emails.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/get-contact-emails.c b/get-contact-emails.c
index c41b48f..257326e 100644
--- a/get-contact-emails.c
+++ b/get-contact-emails.c
@@ -1,7 +1,7 @@
/* See LICENSE file for copyright and license details. */
#include "common.h"
-USAGE("[-c context] [-a address] [-CA] contact-id ...");
+USAGE("[-a address] [-c context] [-AC] contact-id ...");
int
@@ -16,22 +16,22 @@ main(int argc, char *argv[])
size_t i;
ARGBEGIN {
- case 'c':
- if (lookup_ctx)
- usage();
- lookup_ctx = ARG();
- break;
case 'a':
if (lookup_addr)
usage();
lookup_addr = ARG();
break;
- case 'C':
- display_ctx = 1;
+ case 'c':
+ if (lookup_ctx)
+ usage();
+ lookup_ctx = ARG();
break;
case 'A':
display_addr = 1;
break;
+ case 'C':
+ display_ctx = 1;
+ break;
default:
usage();
} ARGEND;