Preconditions and Postconditions - selective enable/disable

Dejan Lekic dejan.lekic at gmail.com
Mon Dec 1 11:15:09 UTC 2025


On Monday, 1 December 2025 at 10:39:08 UTC, Brother Bill wrote:
> If I wanted only in and switch "checked" would I add two -check 
> arguments to CLI as
> ```
> $ dub build -check=in=on -check=switch=on
> ```
>
> or some other magic incantation?

One way is to export variable named DFLAGS with those options.

Or, use dflags in your DUB config file - 
https://dub.pm/dub-reference/build_settings/#dflags



More information about the Digitalmars-d-learn mailing list