Skip to content

tracey query validate has wrong help #151

@passcod

Description

@passcod

Running tracey query validate prints this at the end:

→ Run `tracey query validate <spec>/<impl>`

But running that returns:

Error: unexpected argument: foo/bar
   ╭─[ <cli>:1:16 ]
   │
 1 │ query validate foo/bar
   │                ───┬───
   │                   ╰───── unexpected argument: foo/bar
───╯

So then we go look at the --help:

tracey query validate

Validate the spec and implementation

USAGE:
    tracey query validate [OPTIONS]

OPTIONS:
        --spec_impl <STRING>
            Spec/impl to validate (e.g., "my-spec/rust"). Optional if only one exists.

Wait, what?

Error: unknown flag: --spec_impl. Did you mean '--spec-impl'?
   ╭─[ <cli>:1:16 ]
   │
 1 │ query validate --spec_impl foo/bar
   │                ─────┬─────
   │                     ╰─────── unknown flag: --spec_impl. Did you mean '--spec-impl'?
───╯
Error: unexpected argument: foo/bar
   ╭─[ <cli>:1:28 ]
   │
 1 │ query validate --spec_impl foo/bar
   │                            ───┬───
   │                               ╰───── unexpected argument: foo/bar
───╯

So it's actually --spec-impl. Weird that it's wrong in two places though!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions