lib/chef/knife/profitbricks_datacenter_create.rb in knife-profitbricks-1.0.0 vs lib/chef/knife/profitbricks_datacenter_create.rb in knife-profitbricks-1.1.1

- old
+ new

@@ -8,21 +8,23 @@ banner 'knife profitbricks datacenter create (options)' option :name, short: '-n NAME', long: '--name NAME', - description: 'Name of the data center' + description: 'Name of the data center', + required: true option :description, short: '-D DESCRIPTION', long: '--description DESCRIPTION', description: 'Description of the data center' option :location, short: '-l LOCATION', long: '--location LOCATION', description: 'Location of the data center', - proc: proc { |location| Chef::Config[:knife][:location] = location } + proc: proc { |location| Chef::Config[:knife][:location] = location }, + required: true def run $stdout.sync = true print "#{ui.color('Creating data center...', :magenta)}"