lib/spacer.rb in code_tools-4.2.0 vs lib/spacer.rb in code_tools-4.2.1

- old
+ new

@@ -1,10 +1,10 @@ require 'ostruct' require 'optparse' require 'colorize' -$VERSION='4.2.0-20151225.0' +$VERSION='4.2.1-20151227.0' class Spacer def parse(args) options = OpenStruct.new @@ -40,12 +40,10 @@ "Default is to just display the files current state.", "Updates will only be done when this argument is given.") do |mode| options.convert_mode = mode end - opts.on("-t", "--tabsize SIZE", Integer, "Tab size. Default is 4 spaces.", - "Default is to just display the files current state.", - "Updates will only be done when this argument is given.") do |size| + opts.on("-t", "--tabsize SIZE", Integer, "Tab size in spaces to assume. Default is 4 spaces.") do |size| options.tabsize = size end opts.on("-r", "--round", "When tabifying, round BOL spaces down to an exact number of tabs.") do |round| options.round_down_spaces = round