Flow: Please never remove the `--version` argument

Created on 7 Jul 2017  路  3Comments  路  Source: facebook/flow

When you run flow --version, it tells you that it is deprecated in favour of flow version in newer Flow versions. This implies that --version will eventually be removed. I would like to suggest that --version is _never_ removed from flow.

I integrate flow with my Vim plugin ALE, and I need to check the version of Flow to know which arguments are supported, as someone might be running version 0.49.1, or 0.27.0. If --version is ever removed, then at best I'll have to write flow --version; flow version and try and parse the version number from the combined output.

feature request

Most helpful comment

In addition to that, cmd --version is a widely adopted convention and I usually automatically reach for cmd --version when trying to check the command's version.

All 3 comments

In addition to that, cmd --version is a widely adopted convention and I usually automatically reach for cmd --version when trying to check the command's version.

I completely agree - it seems like it's a pretty strong standard among almost all CLIs that --version will give you the version number. Many tools and people use this without thought. A user should not have to consult the documentation or help to look for the command when there seems to already be a community standard.

(Though I do appreciate why there is also a command version to allow for further options.)

I've created a pull request to un-deprecate this.

Okay

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bennoleslie picture bennoleslie  路  3Comments

marcelbeumer picture marcelbeumer  路  3Comments

Beingbook picture Beingbook  路  3Comments

jamiebuilds picture jamiebuilds  路  3Comments

ghost picture ghost  路  3Comments