public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [committed] Show in usage that -r and -M are exclusive
@ 2019-01-01  0:00 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz, jakub

Hi,

The -r and -M command line options are exclusive:
...
$ dwz -m 3 1 2 -r -M bla
dwz: -M and -r options can't be specified together
...
but usage shows them as non-exclusive options.

Show them as exclusive options instead:
...
-  dwz [-v] [-q] [-l <COUNT|none>] [-L <COUNT|none>] [-h] [-m COMMONFILE] \
     [-M NAME] [-r] [FILES]
+  dwz [-v] [-q] [-l <COUNT|none>] [-L <COUNT|none>] [-h] [-m COMMONFILE] \
     [-M NAME | -r] [FILES]
...

Committed to trunk.

Thanks,
- Tom

Show in usage that -r and -M are exclusive

2019-12-11  Tom de Vries  <tdevries@suse.de>

	* dwz.c (usage): Show that -r and -M are exclusive.

---
 dwz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dwz.c b/dwz.c
index a08cffe..900bfc3 100644
--- a/dwz.c
+++ b/dwz.c
@@ -13366,7 +13366,7 @@ usage (void)
 #define COMMON_OPTS "[-v] [-q] [-l <COUNT|none>] [-L <COUNT|none>]"
   error (1, 0,
 	 "Usage:\n"
-	 "  dwz " COMMON_OPTS " [-h] [-m COMMONFILE] [-M NAME] [-r] [FILES]\n"
+	 "  dwz " COMMON_OPTS " [-h] [-m COMMONFILE] [-M NAME | -r] [FILES]\n"
 	 "  dwz " COMMON_OPTS " -o OUTFILE FILE\n"
 #undef COMMON_OPTS
 #if DEVEL

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-11 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  0:00 [committed] Show in usage that -r and -M are exclusive Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).