diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-03 19:26:35 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-03 19:26:35 +0200 |
commit | 2c6143d373c86f6b5c31e07d97447063766cd4eb (patch) | |
tree | 3f92f07cb737dad6f0f6f02bd191741fdd57edad /get-contact-emails.c | |
parent | Add photo utils (diff) | |
download | contacts-2c6143d373c86f6b5c31e07d97447063766cd4eb.tar.gz contacts-2c6143d373c86f6b5c31e07d97447063766cd4eb.tar.bz2 contacts-2c6143d373c86f6b5c31e07d97447063766cd4eb.tar.xz |
m + add chat utils
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'get-contact-emails.c')
-rw-r--r-- | get-contact-emails.c | 16 |
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; |