解析该命令行:
–usb –file=0x100000::0x200000::C:\Users\minxiaoyao\Desktop\test.txt::NAND::chip0 –tspid=0x1b58 –tbpid=0xdd –info=0x03::0x01::0x01010101::V0.000000000000 -o=C:\Users\minxiaoyao\Desktop\444.bin
#include <QCoreApplication>
#include <QCommandLineParser>
#include <QStringList>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
//添加命令选项
QCommandLineOption op1("usb","USB打包");
QCommandLineOption op2("ts", "TS流打包");
QCommandLineOption op3("file", "烧写起始地址::烧写结束地址::烧写文件::Flash类型选择::Chip片选","list");
QCommandLineOption op4("tspid", "Tspid","int");
QCommandLineOption op5("tbpid", "Tablepid","int");
QCommandLineOption op6("info", "厂商id::硬件版本::软件版本::IP版本","list");
QCommandLineOption op7(QStringList()<<"o"<<&#