Skip to content

[plugin] Improved the example code to encourage usage of optional arguments - #2212

Merged
cdecker merged 2 commits into
ElementsProject:masterfrom
renepickhardt:patch-5
Jan 2, 2019
Merged

[plugin] Improved the example code to encourage usage of optional arguments#2212
cdecker merged 2 commits into
ElementsProject:masterfrom
renepickhardt:patch-5

Conversation

@renepickhardt

Copy link
Copy Markdown
Collaborator

The example code had the plugin argument as the last argument. this disallows arguments that have a standard value. As far as I understand the dispatching code the order of arguments does not matter since it is the name plugin that is relevant. Therefor I changed the order so that newbe's don't have to read the entire code and can easily add optional arguments

The example code had the `plugin` argument as the last argument. this disallows arguments that have a standard value. As far as I understand the dispatching code the order of arguments does not matter since it is the name `plugin` that is relevant. Therefor I changed the order so that newbe's don't have to read the entire code and can easily add optional arguments
@renepickhardt
renepickhardt requested a review from cdecker as a code owner January 2, 2019 10:53

@cdecker cdecker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor stylistic correction.

Comment thread contrib/plugins/helloworld.py Outdated
added small stylistic fix by @cdecker (sorry I made that original fix also on the github editor which did not have autosave actions)

Co-Authored-By: renepickhardt <rene@rene-pickhardt.de>
@renepickhardt

Copy link
Copy Markdown
Collaborator Author

I have accepted your in git addition. thus it should be ready to be merged.

@cdecker

cdecker commented Jan 2, 2019

Copy link
Copy Markdown
Member

ACK 4db3f47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants