10 lines
267 B
Lua
10 lines
267 B
Lua
|
opts = options()
|
||
|
assert(is_options(opts))
|
||
|
opts = opts:update(name('pp', 'colors'), false)
|
||
|
opts = opts:update(name('pp', 'colors'), true)
|
||
|
print(opts)
|
||
|
assert(is_options(opts))
|
||
|
assert(not is_options(name("foo")))
|
||
|
assert(not is_options("foo"))
|
||
|
assert(not is_options({}))
|