From 0e40f65d1df7267b0a9cfa4a94941aa1f4999ec8 Mon Sep 17 00:00:00 2001 From: Adam Kasztenny Date: Fri, 30 Nov 2018 12:34:34 -0500 Subject: [PATCH] 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 --- src/lxc/tools/lxc_create.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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, -- 2.47.2