Skip to content

Make CLI shows version with option -v. #363

@2chanhaeng

Description

@2chanhaeng

Summary

Make CLI shows version with option -v.

Problem

For now, CLI shows version with option -V, captal V only.

Image

But other options using lower character.
I felt that it lacked consistency and was confusing.
Also, most of other CLI programs using -v options to show version.

Image

But not Capital V:

  • deno: The only CLI shows version with -V option.
    Image
  • npm:
    Image
  • yarn: It doesn't even know that -V is an option.
    Image
  • pnpm:
    Image
  • node:
    Image

Proposed Solution

I think that using -v as a option to show version will be more user-friendly and give consistency.

Alternatives Considered

No response

Scope / Dependencies

  • Modify packages/cli

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions