Add WithFlags() and WithFlagsf()

These functions are used to output a single line of output using specified
flags.

Closes #4