{"record":{"id":"1a97d8abac47b4ef","repo":"pry/pry","slug":"unknown-command-items-0","errorCode":null,"errorMessage":"Unknown command `#{items[0]}`","messagePattern":"Unknown command `#(.+?)`","errorType":"validation","errorClass":"InvalidCommandError","httpStatus":null,"severity":"error","filePath":"lib/pry/slop/commands.rb","lineNumber":146,"sourceCode":"      def parse(items = ARGV)\n        parse! items.dup\n        items\n      end\n\n      # Parse a list of items, removing any options or option arguments found.\n      #\n      # items - The Array of items to parse.\n      #\n      # Returns the original Array of items with options removed.\n      def parse!(items = ARGV)\n        if (opts = commands[items[0].to_s])\n          @triggered_command = items.shift\n          execute_arguments! items\n          opts.parse! items\n        elsif (opts = commands['default'])\n          opts.parse! items\n        elsif config[:strict] && items[0]\n          raise InvalidCommandError, \"Unknown command `#{items[0]}`\"\n        end\n        execute_global_opts! items\n        items\n      end\n\n      # Returns a nested Hash with Slop options and values. See Slop#to_hash.\n      def to_hash\n        Hash[commands.map { |k, v| [k.to_sym, v.to_hash] }]\n      end\n\n      # Returns the help String.\n      def to_s\n        defaults = commands.delete('default')\n        globals = commands.delete('global')\n        helps = commands.reject { |_, v| v.options.none? }\n        helps['Global options'] = globals.to_s if globals && globals.options.any?\n        helps['Other options'] = defaults.to_s if defaults && defaults.options.any?\n        banner = @banner ? \"#{@banner}\\n\" : \"\"","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/pry/pry/blob/135640262879544c6bfecbf3e78511289bfe956c/lib/pry/slop/commands.rb#L128-L164","documentation":"Error \"Unknown command `#{items[0]}`\" thrown in pry/pry.","triggerScenarios":"Thrown at lib/pry/slop/commands.rb:146 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"135640262879544c6bfecbf3e78511289bfe956c","analyzedAt":"2026-08-21T19:07:03.985Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}