[augeas-devel] augeas: master - * src/augtool.c: new option --noautoload
David Lutterkort
lutter at fedoraproject.org
Sat Apr 4 00:48:27 UTC 2009
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=53cf4cfaabf23ae1079c0c42f27ad97baf9709b6
Commit: 53cf4cfaabf23ae1079c0c42f27ad97baf9709b6
Parent: 56d908f49129df50660c680b0532dced153a239a
Author: David Lutterkort <lutter at redhat.com>
AuthorDate: Fri Apr 3 16:46:40 2009 -0700
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Fri Apr 3 16:47:54 2009 -0700
* src/augtool.c: new option --noautoload
---
src/augtool.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/augtool.c b/src/augtool.c
index a33b0ba..c1ac383 100644
--- a/src/augtool.c
+++ b/src/augtool.c
@@ -564,6 +564,7 @@ static void usage(void) {
fprintf(stderr, " -I, --include DIR search DIR for modules; can be given mutiple times\n");
fprintf(stderr, " --nostdinc do not search the builtin default directories for modules\n");
fprintf(stderr, " --noload do not load any files into the tree on startup\n");
+ fprintf(stderr, " --noautoload do not autoload modules from the search path\n");
exit(EXIT_FAILURE);
}
@@ -573,7 +574,8 @@ static void parse_opts(int argc, char **argv) {
size_t loadpathlen = 0;
enum {
VAL_NO_STDINC = CHAR_MAX + 1,
- VAL_NO_LOAD = VAL_NO_STDINC + 1
+ VAL_NO_LOAD = VAL_NO_STDINC + 1,
+ VAL_NO_AUTOLOAD = VAL_NO_LOAD + 1
};
struct option options[] = {
{ "help", 0, 0, 'h' },
@@ -584,6 +586,7 @@ static void parse_opts(int argc, char **argv) {
{ "include", 1, 0, 'I' },
{ "nostdinc", 0, 0, VAL_NO_STDINC },
{ "noload", 0, 0, VAL_NO_LOAD },
+ { "noautoload", 0, 0, VAL_NO_AUTOLOAD },
{ 0, 0, 0, 0}
};
int idx;
@@ -614,6 +617,9 @@ static void parse_opts(int argc, char **argv) {
case VAL_NO_LOAD:
flags |= AUG_NO_LOAD;
break;
+ case VAL_NO_AUTOLOAD:
+ flags |= AUG_NO_MODL_AUTOLOAD;
+ break;
default:
usage();
break;
More information about the augeas-devel
mailing list