Rename invoke-main and register inline flags.