-
Notifications
You must be signed in to change notification settings - Fork 596
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
Refactored and enhanced ArgumentsBuilder #6474
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.
@davidbenjamin I should have done this a long time ago. Thank you for doing it now. I have 1 real comment. 👍 after that. I'm assuming that the changes to the tests are automatically applied and don't need a careful review.
@@ -26,200 +26,169 @@ public ArgumentsBuilder(){} | |||
public ArgumentsBuilder(Object[] args){ |
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 update the class comment while you're here?
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.
done
Assert.assertEquals(args.getArgsArray(), new String[]{"--foo","bar"}); | ||
Assert.assertEquals(args.getString(), "--foo bar"); | ||
} | ||
|
||
@Test |
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.
No love for positional arguments? There might be 1 tool that uses those somewhere....
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.
addPositional
was just a wrapper for add
, which struck me as confusing at best, misleading at worst.
Yes. |
db61ee1
to
982a023
Compare
Closes #4550
@jonn-smith You seem to be the godfather of this ticket. All the integration test files changed are just the consequence of renaming; the only substance is the changes to ArgumentsBuilder.