fixed a bug in CLICommandGenerator