-
Notifications
You must be signed in to change notification settings - Fork 10
Custom target filename #150
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
move new optional parameter end of public API arguments with default value to avoid breaking changes. Update existing tests
@@ -85,7 +85,7 @@ def can_flash(target): | |||
return True | |||
|
|||
# pylint: disable=too-many-return-statements, duplicate-except | |||
def flash(self, source, target, method, no_reset): | |||
def flash(self, source, target, method, no_reset, target_filename): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think, is this "public API" ? I would say no... Note that this change is breaking change if we think about this is public API..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not break if default value is given for the target_filename. When the value is default it should work as before this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway, this is not public API IMO either.
Wrong parameters were used.
Why problem(s) does this PR solve? |
This reverts commit 689f984.
@jupe could this be merged? |
Add test for cli usage as well. Missing also tests for invalid target filename values. |
Status
READY
Migrations
NO
Description
introduce optional
--target_filename <filename>
-parameterNOTE: implemented top of #145
Todos