implementing --version?
Karabuta via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Nov 21 12:56:41 PST 2016
On Monday, 21 November 2016 at 19:33:54 UTC, mab-on wrote:
> I would like to implement a "--version" switch for a command
> line application.
> Is there a clever way to do that without using the brain on
> every build? :)
>
> A dub-solution would be nice - but i didnt find it.
There is a package in the dub registry called commando
(https://code.dlang.org/packages/commando) for that. Example
usage can be found at
https://github.com/SirTony/commando/tree/master/examples/find.
The README file describes the code found in the src folder.
More information about the Digitalmars-d-learn
mailing list