aboutsummaryrefslogtreecommitdiffstats
path: root/set-contact-addresses.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-11 20:39:49 +0200
committerMattias Andrée <maandree@kth.se>2021-04-11 20:39:49 +0200
commitbc5c3034cab84e9a7d587c2590c2d3f06283972e (patch)
treef895ac024c2ff37907781890ee672c74e7a96ed4 /set-contact-addresses.c
parentRewrite set-contact-numbers to work like set-contact-addresses (diff)
downloadcontacts-bc5c3034cab84e9a7d587c2590c2d3f06283972e.tar.gz
contacts-bc5c3034cab84e9a7d587c2590c2d3f06283972e.tar.bz2
contacts-bc5c3034cab84e9a7d587c2590c2d3f06283972e.tar.xz
Improve set-contact- utils
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'set-contact-addresses.c')
-rw-r--r--set-contact-addresses.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/set-contact-addresses.c b/set-contact-addresses.c
index 90fd9a6..9c50637 100644
--- a/set-contact-addresses.c
+++ b/set-contact-addresses.c
@@ -1,10 +1,10 @@
/* See LICENSE file for copyright and license details. */
#include "common.h"
-USAGE("[-A old-address] [-a new-address] [-C old-context] [-c new-context] "
- "[-G [old-latitude]:[old-longitude]] [-g new-latitude:new-longitude] "
- "[-N old-country] [-n new-country] [-O old-care-of] [-o new-care-of] "
- "[-P post-code] [-p new-post-code] [-T old-city] [-t new-city] [-u] contact-id");
+USAGE("[-A old-address] [-C old-context] [-G [old-latitude]:[old-longitude]] [-N old-country] "
+ "[-O old-care-of] [-P post-code] [-T old-city] "
+ "([-a new-address] [-c new-context] [-g new-latitude:new-longitude] [-n new-country] "
+ "[-o new-care-of] [-p new-post-code] [-t new-city] | -u) contact-id");
static int
@@ -131,7 +131,7 @@ main(int argc, char *argv[])
if (remove == edit) {
if (edit)
- eprintf("-u cannot be combined with -acglopt\n");
+ usage();
eprintf("at least one of -acgloptu is required\n");
}