Add commandline parsing to cli module.