aboutsummaryrefslogtreecommitdiff
path: root/src/lsreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lsreg.c')
-rw-r--r--src/lsreg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lsreg.c b/src/lsreg.c
index 0d2ba2d..ef2cafb 100644
--- a/src/lsreg.c
+++ b/src/lsreg.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 struct filter_descr filters[] = {
{ "endpoint", FILTER_STRING },
@@ -28,7 +29,7 @@ parse_options(int argc, char *argv[], int *index)
available_filters = filters;
generic_proginfo->print_help_hook = list_filters;
generic_proginfo->args_doc = "[REGION [REGION...]]";
- return generic_parse_options("eclat describe-regiones",
+ return generic_parse_options(cmd,
"List available regions",
argc, argv, index);
}
@@ -38,7 +39,7 @@ eclat_describe_regions(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, "reg");

Return to:

Send suggestions and report system problems to the System administrator.