Bug 15245 – tools do not support --version flag properly
Status
RESOLVED
Resolution
MOVED
Severity
enhancement
Priority
P5
Component
tools
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-10-25T12:19:03Z
Last change time
2020-04-09T10:56:36Z
Assigned to
No Owner
Creator
Joseph Rushton Wakeling
Comments
Comment #0 by joseph.wakeling — 2015-10-25T12:19:03Z
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.
Comment #1 by dlang-bugzilla — 2015-10-25T22:49:22Z
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.
Comment #2 by joseph.wakeling — 2015-10-25T22:59:39Z
> 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.
Comment #3 by dlang-bugzilla — 2015-10-25T23:01:32Z
(In reply to Joseph Rushton Wakeling from comment #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.
Comment #4 by pro.mathias.lang — 2020-04-09T10:56:36Z