Full implementation of command line support.