Added split command function into cli library.