Fix argument checking and help message for listPermissions
Merge pull request #3 from mwedgwood-rmn/listpermshelp

Fix argument checking and help message for listPermissions