Skip to content

Enhancement: CLI must suggest version command when using --version flag #4332

@sobolevn

Description

@sobolevn

Summary

Using --version flag is quite common among CLI apps.
When you type litestar --version it just says this:

» litestar --version
                                                                                           
 Usage: litestar [OPTIONS] COMMAND [ARGS]...                                               
                                                                                           
╭─ Error ─────────────────────────────────────────────────────────────────────────────────╮
│ No such option: --version                                                               │
╰─────────────────────────────────────────────────────────────────────────────────────────╯
                   
Image

And does not suggest version command, which would be awesome to have.

Basic Example

No response

Drawbacks and Impact

No response

Unresolved questions

No response

Metadata

Metadata

Assignees

Labels

EnhancementThis is a new feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions