diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-10-01 16:43:18 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-10-01 16:58:20 +0300 |
commit | ddb280198adcada561b8e72c79b92d50a05b3e78 (patch) | |
tree | de6f2d47fe10d0fb37279893d17ffcbd30b156ce /src/cmdline.opt | |
parent | 78b25d9756403fef919684738f7aecb2cdcee465 (diff) | |
download | eclat-ddb280198adcada561b8e72c79b92d50a05b3e78.tar.gz eclat-ddb280198adcada561b8e72c79b92d50a05b3e78.tar.bz2 |
Implement exit; add some docs.
* Makefile.am (SUBDIRS): Add doc.
* configure.ac: Build doc/Makefile
* doc/Makefile.am: New file.
* doc/eclat-associate-address.1: New file.
* doc/eclat.1: New file.
* etc/associate-address.fln: Call exit if the request fails.
* etc/default.fln: Call exit if error is returned or if the
response is not recognized.
* lib/forlan.c (forlan_eval_env) <exit_code>: New member.
New built-in function: exit.
(forlan_run): Return exit code.
* lib/forlan.h (forlan_run): Change return type.
* lib/forlanlex.l: Treat unquoted decimal number as
a quoted string.
* src/asscaddr-cl.opt: Minor changes.
* src/cmdline.opt: Minor changes.
* src/eclat.c: Return EX_NOPERM on unsufficient permissions
to open the configuration file.
* tests/exit.at: New file.
* tests/Makefile.am: Add new files.
* tests/testsuite.at: Include new test cases.
* tests/tforlan.c: Propagate the return from forlan_run to
the shell.
Diffstat (limited to 'src/cmdline.opt')
-rw-r--r-- | src/cmdline.opt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cmdline.opt b/src/cmdline.opt index 03e94dd..7726416 100644 --- a/src/cmdline.opt +++ b/src/cmdline.opt @@ -57,13 +57,7 @@ BEGIN preprocess_only = 1; END -OPTION(dry-run,n,, - [<do nothing, print almost everything>]) -BEGIN - dry_run_mode = 1; - parse_debug_level("main.1"); - parse_debug_level("curl.1"); -END +GROUP(Modifiers) OPTION(config-file,c,FILE, [<use FILE instead of the default configuration>]) @@ -71,10 +65,8 @@ BEGIN conffile = optarg; END -GROUP(Modifiers) - OPTION(region,,NAME, - [<define AWS region>]) + [<set AWS region (availability zone)>]) BEGIN struct replvar *rv = grecs_malloc(sizeof(*rv)); rv->s_ptr = ®ion_name; @@ -184,6 +176,14 @@ END GROUP(Debugging) +OPTION(dry-run,n,, + [<do nothing, print almost everything>]) +BEGIN + dry_run_mode = 1; + parse_debug_level("main.1"); + parse_debug_level("curl.1"); +END + OPTION(dump-grammar-trace,,, [<dump configuration grammar traces>]) BEGIN |