solve keyword can not read

1, always display keyword length is 0
2, refactory error process in CLI parser, use the PConfError.