I use QCommandLineOption to parse my command line option.
this is my Arguments class:
If I use the orientation parameter (or colorMode), it works fine, but I cannot get the value of the begin parameter:
QString val = parser.value("begin"); // return always : ""
Usage example:
./tool http://google.com ./ --begin =5
top of page: 0
end of page: 0
./tool http://google.com ./ --begin=5
Unexpected value after '--begin'.
./tool http://google.com ./ -b 5
top of page: 0
end of page: 0
True, I do not understand why?
source share