Deprecate enforce ex (#377)
Deprecate enforce ex merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
parent
4256f988bf
commit
56097fd106
|
@ -85,9 +85,9 @@ else
|
|||
void handleBooleans(string option, string value)
|
||||
{
|
||||
import dfmt.editorconfig : OptionalBoolean;
|
||||
import std.exception : enforceEx;
|
||||
import std.exception : enforce;
|
||||
|
||||
enforceEx!GetOptException(value == "true" || value == "false", "Invalid argument");
|
||||
enforce!GetOptException(value == "true" || value == "false", "Invalid argument");
|
||||
immutable OptionalBoolean optVal = value == "true" ? OptionalBoolean.t
|
||||
: OptionalBoolean.f;
|
||||
switch (option)
|
||||
|
|
Loading…
Reference in New Issue