class YARD::CLI::Diff

def optparse(*args)

def optparse(*args)
  opts = OptionParser.new
  opts.banner = "Usage: yard diff [options] oldgem newgem"
  opts.separator ""
  opts.separator "Example: yard diff yard-0.5.6 yard-0.5.8"
  opts.separator ""
  opts.separator "If the files don't exist locally, they will be grabbed using the `gem fetch`"
  opts.separator "command. If the gem is a .yardoc directory, it will be used. Finally, if the"
  opts.separator "gem name matches an installed gem (full name-version syntax), that gem will be used."
  opts.on('-a', '--all', 'List all objects, even if they are inside added/removed module/class') do
    @list_all = true
  end
  opts.on('--compact', 'Show compact results') { @compact = true }
  opts.on('--git', 'Compare versions from two git commit/branches') do
    @use_git = true
  end
  opts.on('--query QUERY', 'Only diff filtered objects') do |query|
    @verifier.add_expressions(query)
  end
  opts.on('--no-modified', 'Ignore modified objects') do
    @modified = false
  end
  common_options(opts)
  parse_options(opts, args)
  unless args.size == 2
    log.puts opts.banner
    exit(0)
  end
  args
end