pps.sh: add argcheck function