示例#1
0
def values(opt, pattern):
    scoped_values = [
        configutils.ScopedValue('global value', None),
        configutils.ScopedValue('example value', pattern)
    ]
    return configutils.Values(opt, scoped_values)
示例#2
0
def mixed_values(opt, pattern):
    scoped_values = [
        configutils.ScopedValue('global value', None),
        configutils.ScopedValue('example value', pattern, hide_userconfig=True)
    ]
    return configutils.Values(opt, scoped_values)