close #883 use docsplit api instead of cmdline