You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: which_command.rb
    path of file: ./repos/truffleruby/lib/mri/rubygems/commands
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
require_relative "../command"

class Gem::Commands::WhichComm
    
  def initialize
    super "which", "Find the location of a library file you can require",
          :search_gems_first => false, :show_all => false

    add_option "-a", "--[no-]all", "show all matching files" do |show_all, options|
      options[:show_all] = show_all
    end

    add_option "-g", "--[no-]gems-first",
               "search gems before non-gems" do |gems_first, options|
      options[:search_gems_first] = gems_first
    end
  end