lib/brief/cli/change.rb in brief-1.2.0 vs lib/brief/cli/change.rb in brief-1.3.0

- old
+ new

@@ -1,12 +1,12 @@ -command "change" do |c| - c.syntax = "brief change ATTRIBUTE [OPTIONS]" - c.description = "change attributes of brief documents" +command 'change' do |c| + c.syntax = 'brief change ATTRIBUTE [OPTIONS]' + c.description = 'change attributes of brief documents' - c.option "--from", String, "Only apply when the attributes current value matches." - c.option "--to", String, "Only apply when the attributes current value matches." - c.option "--files", String, "The files you want to change" - c.option "--on", String, "alias for --files. The files you want to change" + c.option '--from', String, 'Only apply when the attributes current value matches.' + c.option '--to', String, 'Only apply when the attributes current value matches.' + c.option '--files', String, 'The files you want to change' + c.option '--on', String, 'alias for --files. The files you want to change' c.action do |args, options| puts "Args: #{ args.inspect }" puts "Options: #{ options.inspect }" end