Implement -p flag

This PR adds support for `-p` flag so that documentation is correct.