Split cli functions for parsing io and file