diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-04-25 14:34:18 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-04-25 14:34:18 +0300 |
commit | 1efebd2b5fd9e04c892500a1108ccbd20c146f31 (patch) | |
tree | 95adbbbc451de1ba0337c3564b9d91d61718b9bd /src/lsinst.c | |
parent | 02e09c1128a6e489a52390867c81fc886cb74273 (diff) | |
download | eclat-1efebd2b5fd9e04c892500a1108ccbd20c146f31.tar.gz eclat-1efebd2b5fd9e04c892500a1108ccbd20c146f31.tar.bz2 |
Improve help and usage output.
* NEWS: Version 0.9.90
* configure.ac: Likewise.
* grecs: Upgrade.
* src/allocaddr-cl.opt: Use OPTIONS_COMMAND_BEGIN to
declare subcommand. Remove the nousage flag.
* src/cpimg-cl.opt: Likewise.
* src/cpsnap-cl.opt: Likewise.
* src/asscaddr-cl.opt: Likewise.
* src/detvol-cl.opt: Likewise.
* src/disasaddr-cl.opt: Likewise.
* src/freeaddr-cl.opt: Likewise.
* src/lsaddr-cl.opt: Likewise.
* src/lsattr-cl.opt: Likewise.
* src/lsimg-cl.opt: Likewise.
* src/lsistat-cl.opt: Likewise.
* src/lssg-cl.opt: Likewise.
* src/lssnap-cl.opt: Likewise.
* src/lstag-cl.opt: Likewise.
* src/mkimg-cl.opt: Likewise.
* src/mkinst-cl.opt: Likewise.
* src/mktags-cl.opt: Likewise.
* src/mkvol-cl.opt: Likewise.
* src/generic-cl.opt (generic_parse_options): Change signature.
Use subcmd member of struct grecs_proginfo.
* src/eclat.h (eclat_do_command): New proto.
(generic_parse_options): Change signature.
* src/atvol.c: Update call to generic_parse_options.
* src/deimg.c: Likewise.
* src/getconout.c: Likewise.
* src/lsiattr.c: Likewise.
* src/lsinst.c: Likewise.
* src/lsreg.c: Likewise.
* src/lssattr.c: Likewise.
* src/lsvol.c: Likewise.
* src/lszon.c: Likewise.
* src/mksnap.c: Likewise.
* src/rmsnap.c: Likewise.
* src/rmvol.c: Likewise.
* src/setiattr.c: Likewise.
* src/startstop.c: Likewise.
* src/util.c (translate_ids): Remove unused variable.
Diffstat (limited to 'src/lsinst.c')
-rw-r--r-- | src/lsinst.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lsinst.c b/src/lsinst.c index 8101a71..4cf4a34 100644 --- a/src/lsinst.c +++ b/src/lsinst.c @@ -17,7 +17,8 @@ #include "eclat.h" static void -parse_options(int argc, char *argv[], int *index) +parse_options(struct eclat_command const *cmd, int argc, char *argv[], + int *index) { static char *architecture_str[] = { "i386", "x86_64", NULL }; static char *lifecycle_str[] = { "spot", NULL }; @@ -131,7 +132,7 @@ parse_options(int argc, char *argv[], int *index) available_filters = filters; generic_proginfo->print_help_hook = list_filters; - return generic_parse_options("eclat describe-instances", + return generic_parse_options(cmd, "List instances", argc, argv, index); } @@ -141,7 +142,7 @@ eclat_describe_instances(eclat_command_env_t *env, int argc, char **argv) { int i; - parse_options(argc, argv, &i); + parse_options(env->cmd, argc, argv, &i); argv += i; argc -= i; translate_ids(argc, argv, "InstanceId"); |