-
Notifications
You must be signed in to change notification settings - Fork 3k
Remove default -m and -i options for project.py #3537
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
Conversation
Also moves the check for -m and -i before any file system actions are taken (error faster)
78e0e9f
to
d32e3d8
Compare
@theotherjimmy I broke |
What about any error? This removes the default values, so if anyone was using it, it would break without any warning/error? I assume you warn a user in the upper layer (mbed-cli)? but what about a user who using this as it (mbed 2 for instance, directly this tool) ? A quick check - |
Silly me, I meant to post what the new logs look like!
That's the error they'd see when using the scripts directly. The error is almost identical for the The last error becomes much nicer when paired with these changes: ARMmbed/mbed-cli#412
And then of course if you supply all the required arguments:
No errors 😄 |
/morph export-build |
This output is wrong. It should say |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 73 All exports and builds passed! |
@theotherjimmy good point, that's actually a bug in the released version of mbed-cli at the moment. You can see the bad line here: https://github.com/ARMmbed/mbed-cli/blob/e25da20743223be4781318dc96c3696aa1728270/mbed/mbed.py#L2341 For some reason if the |
Description
This was spurred by ARMmbed/mbed-cli#410.
Having a default target and ide in the
project.py
script is inconsistent with the rest of the tools. This PR removes them and makes-m
and-i
required arguments.Status
READY
Migrations
If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.
YES - Though I doubt it will affect anyone. There is now no longer a default value for the target and the IDE. It will now error if neither of them are provided.
Todos
Reviewer Notes
@theotherjimmy - Could you please make sure I haven't done anything with argparse settings?
@0xc0170 and/or @sarahmarshy - Will removing the default target and IDE cause any issues to your knowledge?