Skip to content

-help autocomplete suggests an invalid flag and crashes the CLI #36

@anmolg-LT

Description

@anmolg-LT

kane-cli version

0.3.1

Operating System

macOS (Apple Silicon)

Installation method

Homebrew

What happened?

Summary

Flag autocompletion suggests -help (single dash), which isn't a valid flag. Accepting it and pressing Enter throws an error and exits the CLI. Only --help (double dash) works.

Steps to reproduce

  1. Start typing a flag with -
  2. The CLI suggests/autocompletes -help
  3. Press TAB → completes to -help
  4. Press Enter → error is shown and the CLI closes

Actual behavior

  • -help is suggested but is invalid
  • Running -help errors out and terminates the CLI session
  • Typing help (no dashes) immediately starts a browser session
  • Only --help works correctly

Expected behavior

  • Autocomplete should suggest valid default flags (e.g. --help), not -help
  • Invalid input should show a graceful usage/help message instead of crashing the CLI

Environment

  • OS: macOS
  • Kane CLI version: not captured

Additional details

No response

Error output / logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    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