New answers tagged

2

No, you have to write such "option parser" yourself. But quite probably there's no need to do this. Just re-write your function to accept dictionary argument. For example, function! SubmitJob(opts) abort let l:opts = extend(copy(a:opts), #{hours: 1, cpus: 1}, 'keep') echo l:opts.hours l:opts.cpus endfunction :call SubmitJob(#{cpus: 2}) &...


Top 50 recent answers are included