-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI tools need better argument parsing #378
Comments
Just checked the code, seems the info is useless when it is in "write" mode. Anyway, this is a bug. |
Did you fixed this issue with pull request #413 ? I did review it and seems to be fine. I'm currently not very happy how the option parsing is implemented (for all CLI tools) and it needs some more love and reworking. Thanks for looking into it. |
Sorry, I did not fix it in #413. Personally, I think the opt parse function should be rewritten. Some cases should be taken into account. |
Yeah you are right, I will rename this issue because it is major. I take two small option parsing libraries into account which are both MIT license: |
Related to #208 |
@grevaillot: Can you check if this resolves with your recent PR? |
i'm a bit puzzled by that piece of code, the v1/v2 stlink handling is a bit broken, the device path is not actually used, and i think it's useless now. still it would be nice to replace the whole custom opt parsing by something more nice / standard.. |
The v1/v2 checking code for st-flash is dependent on the number of arguments provided. is listed as an option argument but if you you provide that argument then the argument parser assumes you are talking to a v1 device because 4 arguments are provided.
The text was updated successfully, but these errors were encountered: