On Wed, Sep 09, 2015 at 02:01:41PM +0200, Cedric Bosdonnat wrote:
On Tue, 2015-09-08 at 17:29 +0100, Daniel P. Berrange wrote:
> From: Eren Yagdiran <erenyagdiran(a)gmail.com>
>
> Commandline parameters for running a template
>
> Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
> ---
> libvirt-sandbox/image/cli.py | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/libvirt-sandbox/image/cli.py b/libvirt-sandbox/image/cli.py
> index 5490c4b..6f9a5e7 100755
> --- a/libvirt-sandbox/image/cli.py
> +++ b/libvirt-sandbox/image/cli.py
> @@ -101,6 +101,10 @@ def requires_template(parser):
> parser.add_argument("template",
> help=_("name of the template"))
>
> +def requires_name(parser):
> + parser.add_argument("-n","--name",
> + help=_("Name of the running sandbox"))
> +
> def requires_source(parser):
> parser.add_argument("-s","--source",
> default="docker",
> @@ -124,6 +128,12 @@ def requires_template_dir(parser):
> default=default_template_dir,
> help=_("Template directory for saving
templates"))
>
> +def requires_image_dir(parser):
> + global default_image_dir
> + parser.add_argument("-I","--image-dir",
> + default=default_image_dir,
> + help=_("Image directory for saving images"))
> +
> def gen_download_args(subparser):
> parser = subparser.add_parser("download",
> help=_("Download template data"))
> @@ -153,6 +163,20 @@ def gen_create_args(subparser):
> help=_("format format for image"))
> parser.set_defaults(func=create)
>
> +def gen_run_args(subparser):
> + parser = subparser.add_parser("run",
> + help=_("Run a already built image"))
I'm not a native english speaker, but it sounds like it should be:
"Run an already built image"
Yes, you're right.
Regards,
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|