That won't work, here are the cases:

If the option is a boolean, and it is false do not append the flag.
If the option is a boolean, and it is true append the flag but not the value
Otherwise append the flag and the value.