setGlobalOptions        Produce a function which can get or set global
                        options
