On Sunday, 28 August 2016 at 02:51:13 UTC, Adam D. Ruppe wrote:
The filename passed to the compiler is easy: __FILE__ works in
D too, and you can just strip off extra path info with ordinary
functions (like std.path's basename or dirname functions).
Thanks Adam. Worked like a charm.
Hi,
I would like to know how to do something like this
http://stackoverflow.com/questions/237542/learning-the-source-codes-filename-at-compile-time
using dmd or dub.
Can somebody point me in the direction of the doco for this
please because I can't find it :(
ty ss
On Tuesday, 16 August 2016 at 07:19:18 UTC, Edwin van Leeuwen
wrote:
I am using:
http://code.dlang.org/packages/docopt
It's not really json configurable, but that shouldn't be to
complex to implement yourself.
That's also very nice. I hadn't thought of writing the help text
first and then
On Monday, 15 August 2016 at 10:48:11 UTC, Seb wrote:
Are you trying to parse arguments?
There's a lot of good stuff for it already:
https://dlang.org/phobos/std_getopt.html
https://code.dlang.org/packages/darg
https://blog.thecybershadow.net/2014/08/05/ae-utils-funopt/
For configuration
Hi,
I would like some options for a library, preferably json
configurable, that helps with command line tool development.
Doesn't have to be in D specifically.
Currently I am using using std.getopt. I had a search in the DUB
repos and in github but didn't really find anything appealing.