Make flag processing more robust
Make flag processing more robust

DRY things up and reuse constants to avoid mistakes.

Signed-off-by: Wincent Colaiuta <c76ac2e9cd86441713c7dfae92c451f3e6d17fdc@wincent.com>

wincent/clipper