Improved error message when we can't parse a value.
Added integer flags.

Fixed use of short names for boolean flags; Give better error messages
for boolean flags.