Fix MTP command-line parsing#7044
Conversation
|
Can you please explain here, or in the linked issue what is the problem that is solved, and why it is not correct to consider space as delimiter? I am sure someone will run into this in the future, and it is complicated to figure out what is the intention of this change from the code alone. |
|
In command line, when you type The rest of the logic, as indicated in the linked issue, is already also broken as it can swallow some values. Revising the whole logic, lots of things don't make sense. |
It's not correct to consider space as an option-value delimiter.
Fixes #7039
The implementation was previously buggy, and unnecessarily more complicated.
This simplifies the implementation, and makes it more correct.