class Redcarpet::CLI
def self.legacy_parse!(args) # :nodoc:
def self.legacy_parse!(args) # :nodoc: # Workaround for backward compatibility as OptionParser # doesn't support the --flag-OPTION syntax. args.select {|a| a =~ /--(parse|render)-/ }.each do |arg| args.delete(arg) arg = arg.partition(/\b-/) args.push(arg.first, arg.last) end end