lib/inch/cli/yardopts_helper.rb in inch-0.5.0.rc4 vs lib/inch/cli/yardopts_helper.rb in inch-0.5.0.rc5
- old
+ new
@@ -24,11 +24,13 @@
dupped_args.delete("--help")
dupped_args.delete_if do |arg|
arg =~ /^\-/ && !VALID_YARD_SWITCHES.include?(arg)
end
- ui.debug "Sending args to YARD:\n" \
+ if ui
+ ui.debug "Sending args to YARD:\n" \
" args: #{dupped_args}"
+ end
wrapper.parse_arguments(*dupped_args)
self.yard_files = wrapper.files
self.excluded = wrapper.excluded