[PATCH] pactree: Improve command line validation