function registerFlag(flag) {
    if (!/^[\w$]$/.test(flag)) {
        throw new Error('Flag must be a single character A-Za-z0-9_$');
    }

    registeredFlags[flag] = true;
}
Registers a flag so it doesn't throw an 'unknown flag' error.

@private
@param {String} flag Single-character flag to register.