]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Add template-options to help output
authorAdam Kasztenny <adamkasztenny@gmail.com>
Fri, 30 Nov 2018 17:34:34 +0000 (12:34 -0500)
committerAdam Kasztenny <adam.kasztenny@garnercorp.com>
Fri, 30 Nov 2018 17:37:24 +0000 (12:37 -0500)
Copied from the [manpage](https://github.com/lxc/lxc/blob/9e42c1e3f102be48be9014e1ecbacc2a57446e20/doc/lxc-create.sgml.in#L175).

Signed-off-by: Adam Kasztenny <adamkasztenny@gmail.com>
src/lxc/tools/lxc_create.c

index 819f7d4a08372a426e2bf7ab698198c0f62f5536..4bafbd9aa28999b64ad2e62fd049c2824b651a2a 100644 (file)
@@ -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,