unified flag handling, w/literal option