summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)