Fix argument checking and help message for listPermissions