akamensky / argparse

Argparse for golang. Just because `flag` sucks
MIT License
604 stars 62 forks source link

Basic Narg Functionality #71

Closed alanxoc3 closed 3 years ago

alanxoc3 commented 4 years ago

I needed Narg functionality in my application, and I was able to achieve what I needed with a few minor, backwards compatible changes to the library. This doesn't have to be merged, but it might help bring some good ideas to the discussion (I noticed #20, #22, and #38).

Also, my application doesn't use sub commands, so that may be why this change works well for me.

akamensky commented 4 years ago

I am confused here, the top post mentions 3 issues. 2 of them talk about positional arguments, another about nargs. I should probably note -- positional arguments != nargs.

This change is missing any test cases (therefore failure of code coverage checks).

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed soon if no further activity occurs. Thank you for your contributions. Feel free to comment or otherwise update to keep it alive.

stale[bot] commented 3 years ago

Closing due to old age. Feel free to re-open or ping maintainers.