The ${loglevel:+--env} part will cause argument errors and isn't needed anymore.
${loglevel:+--env}
Fixes 5febd297