env--helper: write to opt->value in parseopt helper