diff --git a/src/Options.jl b/src/Options.jl index 40ac726..473369d 100644 --- a/src/Options.jl +++ b/src/Options.jl @@ -38,7 +38,7 @@ function Options{T<:OptionsChecking}(::Type{T},args...) end n = div(length(args),2) keys, index, vals = if n > 0 - (args[1:2:end], ntuple(n, identity), Any[args[2:2:end]...]) + (args[1:2:end], tuple(collect(1:n)...), Any[args[2:2:end]...]) else ((), (), Array(Any, 0)) end