[trunk] improve command line parser syntax checking