summaryrefslogtreecommitdiffabout
path: root/src/mkvol-cl.opt
authorSergey Poznyakoff <gray@gnu.org.ua>2013-04-25 15:24:50 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-04-25 15:24:50 (GMT)
commite545233cb313c7a217c0839390a996744f92edf5 (patch) (side-by-side diff)
treed6c731e8bb23dd8549dd1e512997dd59bd8380bb /src/mkvol-cl.opt
parent6788b695b4fa8882fc20ccee6312977e0d8e8a81 (diff)
downloadeclat-e545233cb313c7a217c0839390a996744f92edf5.tar.gz
eclat-e545233cb313c7a217c0839390a996744f92edf5.tar.bz2
Provide additional m4 magic for creating cl interfaces.
* src/Makefile.am (EXTRA_DIST): Add eclatcl.m4 * src/eclatcl.m4: New file. * src/detvol-cl.opt: Rename to src/devol-cl.opt * src/cmdline.opt: Fix a typo * src/allocaddr-cl.opt: Rewrite usning new m4 macros. * src/asscaddr-cl.opt: Likewise. * src/cpimg-cl.opt: Likewise. * src/cpsnap-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/allocaddr.c: Update calls to parse_options. * src/asscaddr.c: Likewise. * src/cpimg.c: Likewise. * src/cpsnap.c: Likewise. * src/devol.c: Likewise. * src/disasaddr.c: Likewise. * src/freeaddr.c: Likewise. * src/lsaddr.c: Likewise. * src/lsattr.c: Likewise. * src/lsimg.c: Likewise. * src/lsistat.c: Likewise. * src/lssg.c: Likewise. * src/lssnap.c: Likewise. * src/lstag.c: Likewise. * src/mkimg.c: Likewise. * src/mkinst.c: Likewise. * src/mktags.c: Likewise. * src/mkvol.c: Likewise.
Diffstat (limited to 'src/mkvol-cl.opt') (more/less context) (ignore whitespace changes)
-rw-r--r--src/mkvol-cl.opt14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/mkvol-cl.opt b/src/mkvol-cl.opt
index 1f21637..c79d612 100644
--- a/src/mkvol-cl.opt
+++ b/src/mkvol-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",
- [<mkvol, create-volume>],
- [<create EC2 volume>],
- [<SIZE ZONE>],
- [<gnu>],
- [<noversion>])
+ECLAT_CL_BEGIN([<create EC2 volume>],
+ [<SIZE ZONE>])
OPTION(iops,i,[<IOPS>],
[<number of I/O operations per second>])
@@ -36,10 +32,10 @@ BEGIN
snapshot = optarg;
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>],[<
{
GETOPT(argc, argv, *index, exit(EX_USAGE))
}
+>])

Return to:

Send suggestions and report system problems to the System administrator.