Allow to detect optional flags

Allow optional flags by asking if its been set/present on the command line

Couldn't figure out a better way of doing this.