Skip to content

Commit 796bcf0

Browse files
committed
options: Add internal helper to strip all options
1 parent 9051a41 commit 796bcf0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/options.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ function with_options(f, options::NamedTuple)
2020
end
2121
with_options(f; options...) = with_options(f, NamedTuple(options))
2222

23+
function _without_options(f)
24+
with(options_context => NamedTuple()) do
25+
f()
26+
end
27+
end
28+
2329
"""
2430
get_options(key::Symbol, default) -> Any
2531
get_options(key::Symbol) -> Any

0 commit comments

Comments
 (0)