````java
args.getFlagInteger('p', 1);
````
Should be about right.