diff --git a/src/onedb/onedb b/src/onedb/onedb old mode 100755 new mode 100644 index 9e659f16a9..b24c54cc7a --- a/src/onedb/onedb +++ b/src/onedb/onedb @@ -207,6 +207,18 @@ SLAVE_BACKUP={ :format => String } +############################################################################### +# Extra options +############################################################################### + +EXTRA={ + :name => "extra", + :large => "--extra arg", + :description => "Extra args", + :format => Array +} + + cmd=CommandParser::CmdParser.new(ARGV) do description <<-EOT.unindent This command enables the user to manage the OpenNebula database. It @@ -347,7 +359,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do Applies a database patch file EOT - command :patch , patch_desc, :file, :options=>[BACKUP] do + command :patch , patch_desc, :file, :options=>[BACKUP, EXTRA] do begin helper = OneDB.new(options) helper.patch(args[0], options)