summaryrefslogtreecommitdiffabout
path: root/src/startstop.c
Side-by-side diff
Diffstat (limited to 'src/startstop.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/startstop.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/startstop.c b/src/startstop.c
index 216ee1c..7ffb5bb 100644
--- a/src/startstop.c
+++ b/src/startstop.c
@@ -17,11 +17,12 @@
#include "eclat.h"
static void
-parse_options(const char *progname, const char *docstring,
+parse_options(struct eclat_command const *env,
+ const char *docstring,
int argc, char *argv[], int *index)
{
generic_proginfo->args_doc = "ID [ID...]";
- return generic_parse_options(progname, docstring, argc, argv, index);
+ return generic_parse_options(env, docstring, argc, argv, index);
}
static int
@@ -52,7 +53,7 @@ eclat_start_instance(eclat_command_env_t *env, int argc, char **argv)
{
int i;
- parse_options("eclat start-instances",
+ parse_options(env->cmd,
"Start named instances",
argc, argv, &i);
@@ -65,7 +66,7 @@ eclat_stop_instance(eclat_command_env_t *env, int argc, char **argv)
{
int i;
- parse_options("eclat stop-instances",
+ parse_options(env->cmd,
"Stop named instances",
argc, argv, &i);
@@ -78,7 +79,7 @@ eclat_reboot_instance(eclat_command_env_t *env, int argc, char **argv)
{
int i;
- parse_options("eclat reboot-instances",
+ parse_options(env->cmd,
"Reboot named instances",
argc, argv, &i);

Return to:

Send suggestions and report system problems to the System administrator.