aboutsummaryrefslogtreecommitdiff
path: root/src/lsistat-cl.opt
diff options
context:
space:
mode:
Diffstat (limited to 'src/lsistat-cl.opt')
-rw-r--r--src/lsistat-cl.opt15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/lsistat-cl.opt b/src/lsistat-cl.opt
index 2807b73..470f570 100644
--- a/src/lsistat-cl.opt
+++ b/src/lsistat-cl.opt
@@ -14,12 +14,8 @@
You should have received a copy of the GNU General Public License
along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
-OPTIONS_COMMAND_BEGIN("eclat",
- [<lsistat, describe-instance-status>],
- [<describe the status of Amazon EC2 instances including any scheduled events>],
- [<[FILTER...]>],
- [<gnu>],
- [<noversion>])
+ECLAT_CL_BEGIN([<describe the status of Amazon EC2 instances including any scheduled events>],
+ [<[FILTER...]>])
OPTION(all,a,,
[<return the health status for all instances>])
@@ -27,10 +23,9 @@ BEGIN
all_option = 1;
END
-OPTIONS_END
+ECLAT_CL_END
-static void
-parse_options(int argc, char *argv[], int *index)
+ECLAT_CL_PARSER(parse_options, [<int argc, char *argv[], int *index>], [<
{
static char *event_codes[] = {
"instance-reboot",
@@ -101,7 +96,9 @@ parse_options(int argc, char *argv[], int *index)
FILTER_ENUM, instance_reachability },
{ NULL }
};
+
available_filters = filters;
proginfo.print_help_hook = list_filters;
GETOPT(argc, argv, *index, exit(EX_USAGE))
}
+>])

Return to:

Send suggestions and report system problems to the System administrator.