JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.51k stars 2.4k forks source link

Allow `--version` as well #5871

Closed ffes closed 1 week ago

ffes commented 1 week ago

Code of Conduct

What would you like to see changed?

At the moment to show the current version of oh-my-posh you need to type oh-my-posh version, but for some reason (probably because that works almost always with other tools) I keep typing oh-my-posh --version, get an error and use the right command. Therefore it would be really nice if --version would work as well.

Note that for oh-my-posh help and oh-my-posh --help output the same, so why not for oh-my-posh version and oh-my-posh --version.

lewis-yeung commented 1 week ago

@ffes The --version option was removed in v24.

@JanDeDobbeleer The --version option seems to be a convention for many CLI tools. Should we restore it?

JanDeDobbeleer commented 1 week ago

@lewis-yeung I was about to. It depends on the CLI tool. I don't agree with --version myself as from an interface point of view, you request something. It's not a parameter. That said, I don't care enough to stop us from adding it again 🙃