aboutsummaryrefslogtreecommitdiffstats
path: root/get-contact-sites.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-03 19:26:35 +0200
committerMattias Andrée <maandree@kth.se>2021-04-03 19:26:35 +0200
commit2c6143d373c86f6b5c31e07d97447063766cd4eb (patch)
tree3f92f07cb737dad6f0f6f02bd191741fdd57edad /get-contact-sites.c
parentAdd photo utils (diff)
downloadcontacts-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 '')
-rw-r--r--get-contact-sites.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/get-contact-sites.c b/get-contact-sites.c
index 06a8d6b..dcc1d17 100644
--- a/get-contact-sites.c
+++ b/get-contact-sites.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;