Implement command line basic functions.