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

Unify rr-opts and gdb-opts behavior. #14

Merged
merged 7 commits into from
Jan 4, 2023
Merged

Conversation

DrRuhe
Copy link
Contributor

@DrRuhe DrRuhe commented Jan 4, 2023

This is a continuation to #12.

I think the arguments should have the same syntax for specifying them.

Now, both can be specified with their specific flag:

cargo rr replay --rr-opts="-s 1234" --gdb-opts="-a"
Note that equal signs are required to eliminate ambiguity. Otherwise clap would parse --rr-opts "-s 1234" as specifying the -s flag.

In the unified-across-commands branch I have also adjusted the behavior to be consistent, you can decide if that makes sense, given that the other commands do not support gdb-opts and only rr-opts

@dzfranklin
Copy link
Owner

I like unifying across commands. Can you push that to this PR?

@DrRuhe
Copy link
Contributor Author

DrRuhe commented Jan 4, 2023

Oh, thanks for the quick reply :)

Now its unified.

Copy link
Owner

@dzfranklin dzfranklin left a comment

Choose a reason for hiding this comment

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

lgtm

@dzfranklin dzfranklin merged commit 02494a4 into dzfranklin:main Jan 4, 2023
@dzfranklin
Copy link
Owner

fyi @DrRuhe and @NickHu I just published a release with this change

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.

3 participants