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.

Reply via email to