toFlag

Converts a flag enum parsed in a pipeline config into flag used for command building.