From: Adam Kasztenny Date: Fri, 30 Nov 2018 17:34:34 +0000 (-0500) Subject: Add template-options to help output X-Git-Tag: lxc-3.2.0~179^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e40f65d1df7267b0a9cfa4a94941aa1f4999ec8;p=thirdparty%2Flxc.git Add template-options to help output Copied from the [manpage](https://github.com/lxc/lxc/blob/9e42c1e3f102be48be9014e1ecbacc2a57446e20/doc/lxc-create.sgml.in#L175). Signed-off-by: Adam Kasztenny --- diff --git a/src/lxc/tools/lxc_create.c b/src/lxc/tools/lxc_create.c index 819f7d4a0..4bafbd9aa 100644 --- a/src/lxc/tools/lxc_create.c +++ b/src/lxc/tools/lxc_create.c @@ -62,7 +62,7 @@ static struct lxc_arguments my_args = { .progname = "lxc-create", .helpfn = create_helpfn, .help = "\ ---name=NAME --template=TEMPLATE [OPTION...]\n\ +--name=NAME --template=TEMPLATE [OPTION...] [-- template-options]\n\ \n\ lxc-create creates a container\n\ \n\ @@ -96,7 +96,11 @@ Options :\n\ (Default: ext4)\n\ --fssize=SIZE[U] Create filesystem of\n\ size SIZE * unit U (bBkKmMgGtT)\n\ - (Default: 1G, default unit: M)\n", + (Default: 1G, default unit: M)\n\ + -- template-options\n\ + This will pass template-options to the template as arguments.\n\ + To see the list of options supported by the template,\n\ + you can run lxc-create -t TEMPLATE -h.\n", .options = my_longopts, .parser = my_parser, .checker = NULL,