support -g/--grantable option in resource permit

Fixes #56