Smart handling of command line arguments.