commands: clean-up checkarg function
commands: clean-up checkarg function

Consolidates logic and fixes mistake that used argc instead of val for
determining plural.

ascent12/sway,1ace/sway,ascent12/sway,SirCmpwn/sway,1ace/sway,ascent12/sway,1ace/sway