commands/cli: Decomposed 'parseArgs'