-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fix support for additional arguments in DefaultCommand #368
base: master
Are you sure you want to change the base?
Conversation
Hi @keizer619 PTAL at the changes and lmk if it's the right way to solve this issue? |
Hey @keizer619 any updates here? |
src/main/java/org/ballerinalang/command/cmd/DefaultCommand.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Gayal Dassanayake <[email protected]>
Quality Gate passedIssues Measures |
I tested and it is working. However had an offline discussion with @keizer619 and I'm not sure if we should support |
Any update here? @gayaldassanayake @keizer619 ? |
Purpose
In some bal --help commands, after the help text, an error Unmatched argument at index 1: is printed
Goals
Get rid of the error that was caused due to the default command not expecting additional arguments
Approach
Add a
CommandLine.Parameters
such that we can take in a list of parameters avoiding the error and maybe put it to use in the future instead of modify the bal shell fileUser stories
When I first found out about ballerina and started tinkering with it, I ran into this error as well, it didn't make sense to me, and neither did I think it was actually a bug, but when I found this issue, I was relieved cause I spent quite some time trying to figure out how am I typing a
--help
command wrong. XDRelease note
Fix unmatched argument log when running --help
Closes #309