-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Jailer: added the -h
flag as a shorthand for --help
#4743
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
Conversation
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.
Hi @seafoodfry,
thanks for the suggestions :) I think if we want to go with this, we should mention it in CHANGELOG.md. More importantly though is figuring out how to tighten up the parsing to avoid false-positives.
accf88e
to
e67569e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4743 +/- ##
=======================================
Coverage 84.34% 84.34%
=======================================
Files 249 249
Lines 27460 27460
=======================================
Hits 23160 23160
Misses 4300 4300
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
7590570
to
8590f60
Compare
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.
Looks good, I guess the only thing CI is complaining about is the newline in the changelog file
206f49e
to
de19656
Compare
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.
Could you squash your two commits into one? That's also no need to list me as a co-author, I was just repeating what the CI was saying :)
This is a common convention. Signed-off-by: seafoodfry <[email protected]>
5aaecb7
to
9b11b63
Compare
Deal and done. ptal! And I think i'm getting the hang of contributing here (when to squash commits and when not to). |
Thanks! Looks good now :)
Based on your experience, do you think there's anything we could clarify in our documentation about it, to make it easier for the next contributor? :o |
(also sorry for the PR cross-ref to rust-vmm, I messed up while copy-pasting >.>) |
Right now the only thing that comes to mind is something along the lines of "be diligent about squashing commits when implementing suggestions/fedbacks from PR reviews". |
Changes
Jailer: added the
-h
flag as a shorthand for--help
.Reason
This is a common convention - thought it would be useful.
License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md
.PR Checklist
PR.
CHANGELOG.md
.TODO
s link to an issue.contribution quality standards.
rust-vmm
.Additional Details
Tried to replicate the workings of the ArgParser by starting from
firecracker/src/jailer/src/main.rs
Lines 318 to 320 in e67b2be
Which leads to
firecracker/src/utils/src/arg_parser.rs
Lines 320 to 323 in e67b2be
From there I tried to replicate the logic with this small script to see if this patch would work:
I tried it out and saw the following:
So it seems like this "should" work.