lib/autoproj/build_option.rb in autoproj-2.3.1 vs lib/autoproj/build_option.rb in autoproj-2.4.0

- old
+ new

@@ -45,13 +45,13 @@ end end def ask(current_value, doc = nil) default_value = - if !current_value.nil? then current_value.to_s - elsif options[:default] then options[:default].to_str - else '' - end + if !current_value.nil? then current_value.to_s + elsif options[:default] then options[:default].to_str + else '' + end STDOUT.print " #{doc || self.doc} [#{default_value}] " STDOUT.flush answer = STDIN.readline.chomp if answer == ''