D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15245 - tools do not support --version flag properly
Summary: tools do not support --version flag properly
Status: RESOLVED MOVED
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: All All
: P5 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-25 12:19 UTC by Joseph Rushton Wakeling
Modified: 2020-04-09 10:56 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Joseph Rushton Wakeling 2015-10-25 12:19:03 UTC
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 Vladimir Panteleev 2015-10-25 22:49:22 UTC
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 Joseph Rushton Wakeling 2015-10-25 22:59:39 UTC
> 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 Vladimir Panteleev 2015-10-25 23:01:32 UTC
(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 Mathias LANG 2020-04-09 10:56:36 UTC
Moved to https://github.com/dlang/tools/issues/398