Gitweb:
http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=64115058d19beef65dbebdeab3271b6b24f7a412
Commit: 64115058d19beef65dbebdeab3271b6b24f7a412
Parent: 524101e0c46641e6fe4d52552230ef7693060f92
Author: David Lutterkort <[email protected]>
AuthorDate: Wed Apr 8 22:15:29 2009 -0700
Committer: David Lutterkort <[email protected]>
CommitterDate: Thu Apr 9 15:34:26 2009 -0700
* src/augparse.c: add --notypecheck option
---
man/augparse.pod | 8 ++++++++
src/augparse.c | 8 +++++++-
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/man/augparse.pod b/man/augparse.pod
index f8faeda..b53226d 100644
--- a/man/augparse.pod
+++ b/man/augparse.pod
@@ -27,6 +27,14 @@ Do not search any of the default directories for modules.
When this option
is set, only directories specified explicitly with B<-I> or specified in
B<AUGEAS_LENS_LIB> will be searched for modules.
+=item B<--notypecheck>
+
+Do not perform lens type checks. Only use this option during lens
+development and make sure you typecheck lenses when you are done developing
+- you should never use a lens that hasn't been typechecked. This option is
+sometimes useful when you are working on unit tests for a lens to speed up
+the time it takes to repeatedly run and fix tests.
+
=item B<-h>
Display this help and exit
diff --git a/src/augparse.c b/src/augparse.c
index fd7c25b..15d40ae 100644
--- a/src/augparse.c
+++ b/src/augparse.c
@@ -37,6 +37,7 @@ static void usage(void) {
fprintf(stderr, "\nOptions:\n\n");
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, " --notyupecheck do not typecheck lenses\n");
exit(EXIT_FAILURE);
}
@@ -47,12 +48,14 @@ int main(int argc, char **argv) {
char *loadpath = NULL;
size_t loadpathlen = 0;
enum {
- VAL_NO_STDINC = CHAR_MAX + 1
+ VAL_NO_STDINC = CHAR_MAX + 1,
+ VAL_NO_TYPECHECK = VAL_NO_STDINC + 1
};
struct option options[] = {
{ "help", 0, 0, 'h' },
{ "include", 1, 0, 'I' },
{ "nostdinc", 0, 0, VAL_NO_STDINC },
+ { "notypecheck", 0, 0, VAL_NO_TYPECHECK },
{ 0, 0, 0, 0}
};
int idx;
@@ -70,6 +73,9 @@ int main(int argc, char **argv) {
case VAL_NO_STDINC:
flags |= AUG_NO_STDINC;
break;
+ case VAL_NO_TYPECHECK:
+ flags &= ~(AUG_TYPE_CHECK);
+ break;
default:
usage();
break;
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel