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

common way of composing shorthand arguments #52

Merged
merged 2 commits into from Dec 11, 2019

Conversation

goofinator
Copy link
Contributor

This is implementation of my thoughts on issue 45. There is only realization of arguments processing and tests for it (and some fix on tests of internal function about formatting).
I didn't implement it as "on option" behavior yet, because i'm not sure what is the best way to do it.
What do you think about it?
I think it could be done as member of "Command struct" and variant of function "NewParser()"

argument.go Outdated Show resolved Hide resolved
Copy link
Owner

@akamensky akamensky left a comment

Choose a reason for hiding this comment

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

Please see a comment in code. A minor change I believe but adds clarity to the code.

@akamensky akamensky merged commit 543653f into akamensky:master Dec 11, 2019
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.

None yet

2 participants