Skip to content

Subcommands in CLI don't report error (unknown command) #1616

Closed
@mafredri

Description

@mafredri

Information

  • coder --version: Coder v0.5.11-devel+adb7d20c Fri May 20 04:07:23 UTC 2022 adb7d20

Steps to Reproduce

  1. Run coder hello
  2. Observe error
  3. Run coder templates hello
  4. Observe no error

Expected

Running coder templates hello should print unknown command "hello" for "coder templates".

Actual

No error and --help is automatically shown.

Screenshot

image

Notes

I tried quickly looking into this and I can't figure out why it's behaving this way without spending more time on it. It works for the root command and the sub commands are not significantly different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions