Skip to content

The cli parse the starting dash in a prompt wrong #9622

@hbrls

Description

@hbrls

Description

The starting dash is recognized as command flag.

$ kilocode run -- "- Who are you?"          ❌ Can not run

$ kilocode run -- " - Who are you?"         ✅ Good with starting space
I'm Kilo, a CLI tool that helps with software engineering tasks - writing code, debugging, refactoring, and working with files.

$ kilocode run -- "\- Who are you?"         ✅ Good with starting slash
I'm Kilo, an interactive CLI tool that helps with software engineering tasks.

Claude is good.

> claude -p -- '- Who are you'
I'm Claude, an AI assistant made by Anthropic. In this environment, I'm operating as a Claude Code agent—I help with software engineering tasks like debugging, refactoring, building features, and understanding codebases.

Plugins

No response

Kilo version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions