Expands the variables in the input string with the same rules as command variables inside custom dub commands.
the input string where environment variables in form $VAR should be replaced
if true, throw an exception if the given variable is not found, otherwise replace unknown variables with the empty string.
See Implementation
Expands the variables in the input string with the same rules as command variables inside custom dub commands.