Skip to content
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

Add a non verbose (quiet) mode for rosnode info #809

Merged
merged 1 commit into from
May 23, 2016

Conversation

spaghetti-
Copy link

Addresses #804

Default behavior not changed to avoid regression.

@spaghetti-
Copy link
Author

@dirk-thomas This file contains a lot of trailing whitespace which my editor removed by default, but I figured I'd open another pull request for that it makes reading this particular diff pretty annoying. Do let me know if you're interested.

spaghetti-@0d51e75

@@ -554,7 +554,7 @@ def get_node_connection_info_description(node_api, master):
raise ROSNodeIOException("Communication with node[%s] failed!"%(node_api))
return buff

def rosnode_info(node_name):
def rosnode_info(node_name, non_verbose):
Copy link
Member

Choose a reason for hiding this comment

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

Please avoid inverted logic. Either call the argument quiet or verbose.

Adding a positional argument breaks existing code. Please add the new argument as an optional keyword argument. And the default value should not change the current behavior.

@dirk-thomas
Copy link
Member

Thanks for avoiding any whitespace changes. The are usually not being considered for merge anyway since it makes backporting changes between branches unnecessary cumbersome.

@spaghetti-
Copy link
Author

thanks for the comments - fixed.

@dirk-thomas
Copy link
Member

Thanks for the patch and update.

@dirk-thomas dirk-thomas merged commit 82024ac into ros:kinetic-devel May 23, 2016
@spaghetti- spaghetti- deleted the kinetic-devel branch May 23, 2016 18:05
@spaghetti- spaghetti- restored the kinetic-devel branch May 24, 2016 07:51
rsinnet pushed a commit to MisoRobotics/ros_comm that referenced this pull request Jun 19, 2017
Add a non verbose (quiet) mode for rosnode info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants