Issue #3253433 by paul121, m.stenta: Provide a helper function for loading flag options and allowed values