Fission-AI/OpenSpec · error

The --tools option requires a value. Use "all", "none", or…

Error message

The --tools option requires a value. Use "all", "none", or a comma-separated list of tool IDs.

What it means

Thrown by resolveToolsArg when the --tools flag was given but its value is empty or whitespace-only. Non-interactive input validation: the flag must carry "all", "none", or a comma-separated tool ID list; an empty value is ambiguous and rejected rather than guessed.

Solutions

  1. Supply a value: all, none, or a comma-separated tool list
  2. Remove the empty --tools flag entirely to fall back to detection or prompting
  3. Check shell quoting that may strip the value
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/core/init.ts:707 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Fission-AI/OpenSpec@6926ccb18a (2026-08-25). Data as JSON: /api/errors/a7ab85538bcd2328. Report an issue: GitHub.

Appendix: source

Thrown at src/core/init.ts:707

      choices: sortedChoices,
      validate: (selected: string[]) => selected.length > 0 || 'Select at least one tool',
    });

    if (selectedTools.length === 0) {
      throw new Error('At least one tool must be selected');
    }

    return selectedTools;
  }

  private resolveToolsArg(): string[] | null {
    if (typeof this.toolsArg === 'undefined') {
      return null;
    }

    const raw = this.toolsArg.trim();
    if (raw.length === 0) {
      throw new Error(
        'The --tools option requires a value. Use "all", "none", or a comma-separated list of tool IDs.'
      );
    }

    const availableTools = getToolsWithSkillsDir();
    const availableSet = new Set(availableTools);
    const availableList = ['all', 'none', ...availableTools].join(', ');

    const lowerRaw = raw.toLowerCase();
    if (lowerRaw === 'all') {
      return availableTools;
    }

    if (lowerRaw === 'none') {
      return [];
    }

    const tokens = raw

View on GitHub (pinned to 6926ccb18a)