fix throwing exception when only --help flag is given