langgenius/dify · error · Error

${option} requires a value.

Error message

${option} requires a value.

What it means

Error "${option} requires a value." thrown in langgenius/dify.

Source

Thrown at e2e/scripts/run-options.ts:13

import type { SeedOptions } from './seed-runner'

export type RunOptions = {
  forwardArgs: string[]
  full: boolean
  headed: boolean
  seed?: SeedOptions
  seedOnly: boolean
}

const readOptionValue = (argv: string[], index: number, option: string) => {
  const value = argv[index + 1]
  if (!value || value.startsWith('--')) throw new Error(`${option} requires a value.`)

  return value
}

export const parseRunOptions = (argv: string[]): RunOptions => {
  let allowBlocked = false
  let dryRun = false
  let full = false
  let headed = false
  let pack = 'agent-v2'
  let profile: string | undefined
  let seedOnly = false
  const forwardArgs: string[] = []

  for (let index = 0; index < argv.length; index += 1) {
    const arg = argv[index]!

    if (arg === '--') {

View on GitHub (pinned to ef8544b173)

When it happens

Trigger: Thrown at e2e/scripts/run-options.ts:13 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of langgenius/dify@ef8544b173 (2026-08-12). Data as JSON: /api/errors/f70c0854fa35b255. Report an issue: GitHub.