exit process when called with option --usage or --help
use jasmine spy to bypass premature exiting during spec test.