wilzbach / tools-test

1 stars 0 forks source link

tools do not support --version flag properly #133

Open wilzbach opened 8 years ago

wilzbach commented 8 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#15245 From: Joseph Rushton Wakeling <joseph.wakeling@webdrake.net> Reported version: D2 CC: dlang-bugzilla@thecybershadow.net

wilzbach commented 8 years ago

Comment author: Joseph Rushton Wakeling <joseph.wakeling@webdrake.net>

None of the D tools adequately supports the version flag:

(1) rdmd supports the --version flag but gives only the day of build (e.g. 20151025) rather than the actual version tag;

(2) catdoc, changed, dget, dustmite and tolf all exit with an uncaught exception;

(3) ddmangle reports an unrecognized option and prints help.

Since the tools repository is subject to similar version tagging to dmd, druntime and phobos, it would seem appropriate that the tools support a --version flag with similar output to dmd --version.

wilzbach commented 8 years ago

Comment author: Vladimir Panteleev <dlang-bugzilla@thecybershadow.net>

At least DustMite is a separate project that is included with DMD for convenience, thus is not tied to the DMD release schedule. It does not have a version because it has no releases - a release is effectively a push to GitHub.

wilzbach commented 8 years ago

Comment author: Joseph Rushton Wakeling <joseph.wakeling@webdrake.net>

It does not have a version because it has no releases - a release is effectively a push to GitHub.

... and yet the repo is tagged with dmd release numbers.

I'm not suggesting the tools have to be tied to dmd release schedule, but some kind of support of --version would make sense, even if it's just to report the hash and date of the most recent commit.

wilzbach commented 8 years ago

Comment author: Vladimir Panteleev <dlang-bugzilla@thecybershadow.net>

(In reply to Joseph Rushton Wakeling from comment BZ#2)

... and yet the repo is tagged with dmd release numbers.

The DustMite repo isn't. The code in the D-P-L tools repo is a copy from https://github.com/CyberShadow/DustMite , updated periodically.