lib/yard/cli/yri.rb in yard-0.5.3 vs lib/yard/cli/yri.rb in yard-0.5.4
- old
+ new
@@ -127,18 +127,11 @@
opts.on('-p PAGER', '--pager') do |pager|
@serializer = YARD::Serializers::ProcessSerializer.new(pager)
end
common_options(opts)
-
- begin
- opts.parse!(args)
- @name = args.first
- rescue => e
- STDERR.puts e.message
- STDERR << "\n" << opts
- exit
- end
+ parse_options(opts, args)
+ @name = args.first
end
end
end
end
\ No newline at end of file