summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2004-03-13 23:39:36 +0000
committerMarcus Brinkmann <marcus@gnu.org>2004-03-13 23:39:36 +0000
commit3a597a087e88ebdaed6e62f28dcc5797a7711b75 (patch)
tree3e9e533b957c6820256daf6e6ec3b4d4f5ce8ef0
parentf60e8dc9ab2948e2ad70b6a347a0550c0d7a802d (diff)
2004-03-14 Marcus Brinkmann <marcus@gnu.org>
* storeread.c (main): Call argp_usage if store is not set at ARGP_KEY_END.
-rw-r--r--utils/ChangeLog5
-rw-r--r--utils/storeread.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/utils/ChangeLog b/utils/ChangeLog
index 2b6a3dfb..887ce3b1 100644
--- a/utils/ChangeLog
+++ b/utils/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-14 Marcus Brinkmann <marcus@gnu.org>
+
+ * storeread.c (main): Call argp_usage if store is not set at
+ ARGP_KEY_END.
+
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* rpctrace.c: Include <stddef.h>.
diff --git a/utils/storeread.c b/utils/storeread.c
index 12f7b932..df381bec 100644
--- a/utils/storeread.c
+++ b/utils/storeread.c
@@ -1,6 +1,6 @@
/* Write portions of a store to stdout
- Copyright (C) 1996,97,99,2001,02,03 Free Software Foundation, Inc.
+ Copyright (C) 1996,97,99,2001,02,03,04 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
@@ -109,6 +109,9 @@ main (int argc, char **argv)
break;
case ARGP_KEY_END:
+ if (!store)
+ argp_usage (state);
+
if (addr >= 0)
dump (addr, -1);
else if (! dumped)