1. copy xxx.cli to gen_file/

2. excute
./diag_gen.py -fd gen_file/ -f xxx.cli

3.you can get "diag.c" in gen_file/

4.you can get "diag_sort.cli"  --> sorted CLI command list