textproc cmd: minor refactoring
textproc cmd: filter parameter parsing