Don't set monitoringEvent in parseFlags()

This is the only global variable that's set in parseFlags(). IMO, we
should only do the option parsing in parseFlags() and use the resulting
opts struct afterwards.
With --help, exit the program in parseFlags() instead of returning nil
Rename interval to max delay for consistency

Now that we break the CLI, we can just as well fix the option names.