summaryrefslogtreecommitdiff
path: root/libstore/store.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-01-16 11:36:26 +0000
committerRoland McGrath <roland@gnu.org>2001-01-16 11:36:26 +0000
commit600a46782cd5d273e9afeda26e926944faecf13a (patch)
treef21a173bbafc122dfaa2de5fa26b655c1cad31e8 /libstore/store.h
parentf31d77ceb18f1b69e18520c51524b9bfc9fac9b0 (diff)
2001-01-16 Roland McGrath <roland@frob.com>
* store.h (struct store_argp_params): Add member `store_optional'. * argp.c (parse_opt): If store_optional is set, don't make it an error when there are no store arguments and the type doesn't validate that.
Diffstat (limited to 'libstore/store.h')
-rw-r--r--libstore/store.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libstore/store.h b/libstore/store.h
index 9c5e5bfd..6d95746a 100644
--- a/libstore/store.h
+++ b/libstore/store.h
@@ -1,6 +1,6 @@
/* Store I/O
- Copyright (C) 1995, 96, 97, 98, 99 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,98,99,2001 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
@@ -625,6 +625,11 @@ struct store_argp_params
/* The set of classes used to validate store-types and argument syntax. */
const struct store_class *const *classes;
+
+ /* This controls the behavior when no store arguments are specified.
+ If zero, the parser fails with the error message "No store specified".
+ If nonzero, the parser succeeds and sets `result' to null. */
+ int store_optional;
};
/* The result of parsing a store, which should be enough information to open