-
Notifications
You must be signed in to change notification settings - Fork 161
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
ros2 param dump
silently overwrites existing file
#625
Comments
Sometimes it is practical for it to just overwrite it. Perhaps making opt-in would be best. |
Yeah, I'd be fine with a |
What if the default were to write to stdout, with an option to write to a named file? Then overwriting is no big deal because the user had to give a filename to write to. |
That's a pretty good idea, I like it. This is also more Unix-y; you could always do The downside is that this breaks compatibility with earlier releases. That is, in Foxy, if you do I don't know, how do people feel about a command-line break like that? |
ros2 param dump
silently ovewrites existing fileros2 param dump
silently overwrites existing file
@clalancette ok to close now that #638 is merged? |
Yes! Closing. |
Bug report
Required Info:
Steps to reproduce issue
In terminal 1:
In terminal 2:
Expected behavior
When
ros2 param dump
is choosing a filename, it should either error out if a file with the name it chose already exists, or it should keep choosing names until it finds one that has no conflict.Actual behavior
ros2 param dump
silently ovewrites the existing file.The text was updated successfully, but these errors were encountered: