lib/vmc/cli/domain/domains.rb in vmc-0.4.7 vs lib/vmc/cli/domain/domains.rb in vmc-0.5.0.beta.1

- old
+ new

@@ -2,16 +2,13 @@ module VMC::Domain class Domains < Base desc "List domains in a space" group :domains - input :space, :argument => :optional, - :default => proc { client.current_space }, - :from_given => by_name("space"), - :desc => "Space to list the domains from" - input :all, :type => :boolean, :default => false, - :desc => "List all domains" - + input :space, :desc => "Space to list the domains from", + :argument => :optional, :default => proc { client.current_space }, + :from_given => by_name(:space) + input :all, :desc => "List all domains", :default => false def domains space = input[:space] domains = if input[:all]