Handles program arguments and prints usage.