sigproc: move argument checking to the command handlers