From 3a5729015ac724ff194f415b471bf6e5aac5e4be Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 13 Dec 2017 15:59:45 -0800 Subject: [PATCH] Add documentation entry for init command --template flag --- plugins/commands/init/command.rb | 2 +- website/source/docs/cli/init.html.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/commands/init/command.rb b/plugins/commands/init/command.rb index a86c15494..a55ad2b1d 100644 --- a/plugins/commands/init/command.rb +++ b/plugins/commands/init/command.rb @@ -40,7 +40,7 @@ module VagrantPlugins options[:output] = output end - o.on("--template FILE", String, "Path to Vagrantfile template") do |template| + o.on("--template FILE", String, "Path to custom Vagrantfile template") do |template| options[:template] = template end end diff --git a/website/source/docs/cli/init.html.md b/website/source/docs/cli/init.html.md index 33714b18b..c66c91102 100644 --- a/website/source/docs/cli/init.html.md +++ b/website/source/docs/cli/init.html.md @@ -36,6 +36,8 @@ setting in the created Vagrantfile. * `--output FILE` - This will output the Vagrantfile to the given file. If this is "-", the Vagrantfile will be sent to stdout. +* `--template FILE` - Provide a custom ERB template for generating the Vagrantfile. + ## Examples Create a base Vagrantfile: