dubs: Getting into the Node scripts market
Andre Pany via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 3 06:13:05 PDT 2017
On Wednesday, 3 May 2017 at 12:16:30 UTC, rikki cattermole wrote:
>> Actually there is a special syntax that is also used for
>> shebang style
>> scripts: `dub app.d arg1 arg2` is equivalent to `dub --quiet
>> --temp-build --single app.d -- arg1 arg2`. It seems like the
>> command
>> line help wasn't really updated to reflect that, though.
>>
>> The only catch is that the .d extension is still required to
>> make it
>> possible to tell a script file name apart from a regular
>> command.
>
> Well you could look for the normal command, if not found, try
> isFile with the extension if needed.
> Just a thought.
Fantastic. The isFile enhancement is a minor thing but it would
be great if this
also could be added.
Thanks:)
Kind regards
André
More information about the Digitalmars-d
mailing list