aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-09-05 18:07:23 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-09-05 18:07:23 +0000
commitde3509b95b8a7cf1324a92adb25a56e673c3c7b5 (patch)
treeb0ffa3d435c288e8bae1dcaf1a0369048ac80fdb /src/wydawca.c
parent4f3506f536f7efb34e5b3b823ac030d89e3bd5e1 (diff)
downloadwydawca-de3509b95b8a7cf1324a92adb25a56e673c3c7b5.tar.gz
wydawca-de3509b95b8a7cf1324a92adb25a56e673c3c7b5.tar.bz2
Update
git-svn-id: file:///svnroot/wydawca/trunk@312 6bb4bd81-ecc2-4fd4-a2d4-9571d19c0d33
Diffstat (limited to 'src/wydawca.c')
-rw-r--r--src/wydawca.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wydawca.c b/src/wydawca.c
index d7cbe81..83f2502 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -43,6 +43,7 @@ usage ()
printf (" --cron, --syslog log to syslog\n");
printf (" -d, --debug increase debugging level by 1\n");
printf (" -e, --stderr log to stderr\n");
+ printf (" -I, --include-directory[=DIR] set default include directory\n");
printf (" -n, --dry-run do nothing, print almost everything;\n"
" implies `--debug --stderr'; use additional\n"
" `--debug' options to get even more info\n");
@@ -144,6 +145,7 @@ struct option options[] = {
{ "version", no_argument, NULL, 'v' },
{ "dry-run", no_argument, NULL, 'n' },
{ "lint", no_argument, NULL, 't' },
+ { "include-directory", optional_argument, NULL, 'I' },
{ NULL }
};
@@ -234,8 +236,9 @@ main (int argc, char **argv)
int lint_mode = 0;
program_name = argv[0];
+ gsc_config_include_dir = SYSCONFDIR;
mu_register_all_mailer_formats ();
- while ((c = getopt_long (argc, argv, "c:dehntv", options, NULL)) != EOF)
+ while ((c = getopt_long (argc, argv, "c:dehI::ntv", options, NULL)) != EOF)
{
switch (c)
{
@@ -259,6 +262,10 @@ main (int argc, char **argv)
usage ();
exit (0);
+ case 'I':
+ gsc_config_include_dir = optarg;
+ break;
+
case 'n':
log_to_stderr = 1;
debug_level = 1;

Return to:

Send suggestions and report system problems to the System administrator.