Initial support for proper command line parsing

Using CmdArgs.