aboutsummaryrefslogtreecommitdiff
path: root/src/eclat.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-02-09 16:34:52 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-02-09 16:34:52 +0200
commit62f22e19e0953022d68f220463104117a1a5b7e2 (patch)
tree1c0ca58723492296f84b25b8f1e195573263188a /src/eclat.c
parentdaae7b2e4fbcecbb11f85949358c189fc25291b6 (diff)
downloadeclat-62f22e19e0953022d68f220463104117a1a5b7e2.tar.gz
eclat-62f22e19e0953022d68f220463104117a1a5b7e2.tar.bz2
Read default options from the environment variable ECLAT_OPTIONS.
* src/cmdline.opt (process_options): Process the value of the environment variable ECLAT_OPTIONS prior to the actual command line options. * src/eclat.c (main): Update invocation of process_options. * doc/eclat.1: Update.
Diffstat (limited to 'src/eclat.c')
-rw-r--r--src/eclat.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/eclat.c b/src/eclat.c
index 49691e7..eca1b71 100644
--- a/src/eclat.c
+++ b/src/eclat.c
@@ -632,7 +632,7 @@ read_format(struct command *cmd)
int
main(int argc, char **argv)
{
- int index, rc;
+ int rc;
struct grecs_node *tree;
CURL *curl;
XML_Parser parser;
@@ -659,10 +659,7 @@ main(int argc, char **argv)
#endif
sortcmds();
config_init();
- parse_options(argc, argv, &index);
-
- argc -= index;
- argv += index;
+ parse_options(&argc, &argv);
if (match_command_mode) {
if (argc > 1)

Return to:

Send suggestions and report system problems to the System administrator.