Fleshed out the command-line front end.