# File lib/simp/cli/commands/passgen.rb, line 92
  def self.run(args = Array.new)
    raise OptionParser::ParseError.new('The SIMP Passgen Tool requires at least one option') if args.empty?
    super
    return if @help_requested

    @environment = (@environment.nil? ? DEFAULT_ENVIRONMENT : @environment)
    @password_dir = get_password_dir if @password_dir.nil?

    case @operation
    when :show_environment_list
      show_environment_list
    when :show_name_list
      show_name_list
    when :show_passwords
      show_passwords
    when :set_passwords
      set_passwords
    when :remove_passwords
      remove_passwords
    else
      raise OptionParser::ParseError.new("No password operation specified.\n" + @opt_parser.help)
    end
  end