dbmigrations icon indicating copy to clipboard operation
dbmigrations copied to clipboard

Support `moo --version`

Open creswick opened this issue 9 years ago • 0 comments

It's not easy to tell which version of dbmigrations you're using, which makes reporting bugs more difficult.

Supporting the standard version command line flags would be pretty nice, and given the nature of the tool, it would be great to also support --numeric-version.

Expected behavior:

# This first one could be more verbose:
$ moo --version
dbmigrations 0.9

# This should report *exactly* the version number, and nothing else, as it is intended to be parsed by the cabal version number parser; and as such, can more easily be added as a build-tool dependency.
$ moo --numeric-version
0.9

See ghc --version and ghc --numeric-version for more examples.

creswick avatar Sep 25 '15 17:09 creswick