-
Notifications
You must be signed in to change notification settings - Fork 163
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
Promote special CLI rules to flags #495
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Wouldn't we want to also keep the old way?
I'm fine with deleting them, but I'm not sure if we had consensus about that.
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.
There're two related questions that need an answer here. Thanks for bringing it up again.
First, whether we want to drop the old rules or not. If we don't, that'd preclude supporting multiple values per flag (e.g. multiple remapping rules per
-r
flag). That's not supported nor in the design document, but I've seen interest expressed elsewhere.Assuming that the answer to the first question is
yes
, how do we want to drop them? This is simply removing them, but we may want to go through a deprecation cycle to allow the community to settle. I'd like to hear what @dirk-thomas and @wjwwood think about this.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.
I had thought we'd settled on keeping the old rules so there is less disruption, but I may have imagined it.
I'm in favor of dropping them though with a deprecation cycle.
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.
Another detail I had not thought of is how far should we go back. This PR only or back to the start, with known limitations?
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 start are you referring to?
So, I think that
--ros-args
,-r
,-p
should we always be enforced, without backwards compatibility. If not, it will be quite confusing.About changing some of the
__*:=*
options for flags, I think we can support both for a time, first just deprecating__*:=*
and the deleting them.But as we will break API, by adding
--ros-args
and forcing-r
-p
, I think is also ok to just delete the old__*:=*
options.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.
I have to agree with @jacobperron that we should keep the old flags for now. While it is somewhat annoying, breaking everything in one release will lead to quite some fallout for downstream users (and it isn't just code; they'll also have to retrain their fingers to do something different). So I'd be for deprecating the old
__*:=*
in Eloquent, then removing them in F-turtle.Which brings up a point about how we go about deprecating them. Obviously we can put it in documentation, but should we also print a console message if the old flags are used?
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.
Alright, per offline discussion, we're going to re-instantiate support for old arguments and mark them as deprecated with a warning. I'll do so in another PR. Since it's orthogonal to this PR, we can defer merging till then.
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.
I take that back. It's much easier to do this in a follow-up PR, which I've written already. So if you don't mind, let's get this in and review the next PR right after.
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.
@jacobperron @ivanpauno ^
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.
Sorry for the delay. A follow-up PR is okay with me. I'll take another look at this one.