[PATCH v2 4/4] programs/cmd: Separate IF command parsing from execution.