summaryrefslogtreecommitdiffabout
path: root/src/startstop.c
authorSergey Poznyakoff <gray@gnu.org.ua>2013-04-25 11:34:18 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-04-25 11:34:18 (GMT)
commit1efebd2b5fd9e04c892500a1108ccbd20c146f31 (patch) (unidiff)
tree95adbbbc451de1ba0337c3564b9d91d61718b9bd /src/startstop.c
parent02e09c1128a6e489a52390867c81fc886cb74273 (diff)
downloadeclat-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/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 @@
17#include "eclat.h" 17#include "eclat.h"
18 18
19static void 19static void
20parse_options(const char *progname, const char *docstring, 20parse_options(struct eclat_command const *env,
21 const char *docstring,
21 int argc, char *argv[], int *index) 22 int argc, char *argv[], int *index)
22{ 23{
23 generic_proginfo->args_doc = "ID [ID...]"; 24 generic_proginfo->args_doc = "ID [ID...]";
24 return generic_parse_options(progname, docstring, argc, argv, index); 25 return generic_parse_options(env, docstring, argc, argv, index);
25} 26}
26 27
27static int 28static int
@@ -52,7 +53,7 @@ eclat_start_instance(eclat_command_env_t *env, int argc, char **argv)
52{ 53{
53 int i; 54 int i;
54 55
55 parse_options("eclat start-instances", 56 parse_options(env->cmd,
56 "Start named instances", 57 "Start named instances",
57 argc, argv, &i); 58 argc, argv, &i);
58 59
@@ -65,7 +66,7 @@ eclat_stop_instance(eclat_command_env_t *env, int argc, char **argv)
65{ 66{
66 int i; 67 int i;
67 68
68 parse_options("eclat stop-instances", 69 parse_options(env->cmd,
69 "Stop named instances", 70 "Stop named instances",
70 argc, argv, &i); 71 argc, argv, &i);
71 72
@@ -78,7 +79,7 @@ eclat_reboot_instance(eclat_command_env_t *env, int argc, char **argv)
78{ 79{
79 int i; 80 int i;
80 81
81 parse_options("eclat reboot-instances", 82 parse_options(env->cmd,
82 "Reboot named instances", 83 "Reboot named instances",
83 argc, argv, &i); 84 argc, argv, &i);
84 85

Return to:

Send suggestions and report system problems to the System administrator.