Added support for boolean flags fixes #5