Command-line version of SplitDocUI