Parse arguments in main instead of init