|
|
|
@ -33,11 +33,13 @@ endf |
|
|
|
func! s:parse_options(opts) |
|
|
|
" TODO: improve this |
|
|
|
if len(a:opts) != 1 | return {} | endif |
|
|
|
|
|
|
|
if type(a:opts[0]) == type({}) |
|
|
|
return a:opts[0] |
|
|
|
else |
|
|
|
return {'rev': a:opts[0]} |
|
|
|
let foo = split(a:opts[0], ':') |
|
|
|
let type = foo[0] |
|
|
|
let name = foo[1] |
|
|
|
return {type : name} |
|
|
|
endif |
|
|
|
endf |
|
|
|
|
|
|
|
|