Now the command-line tool builds up a dictionary of commands, and uses the first argument to select one.