From 52d0df329685b32c0805e0a209a001eb0690a9f1 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 3 Feb 2015 19:19:08 -0500 Subject: [PATCH] Add --message option to `vagrant push` --- plugins/commands/push/command.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/commands/push/command.rb b/plugins/commands/push/command.rb index 902a0c946..f76d5a5d2 100644 --- a/plugins/commands/push/command.rb +++ b/plugins/commands/push/command.rb @@ -9,8 +9,17 @@ module VagrantPlugins # @todo support multiple strategies if requested by the community def execute + options = {} + opts = OptionParser.new do |o| o.banner = "Usage: vagrant push [strategy] [options]" + o.separator "" + o.separator "Options:" + o.separator "" + + o.on("-m", "--message BODY", "Text to identify this push") do |m| + options[:message] = m + end end # Parse the options