check --help in main() before everything else

this fixes the bug that when only --help is passed, the program exits without printing help message due to invalid bundle; now --help is checked in main() before everything else