Refactor the usage function in pgps.sh.