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

Use the flags.Value interface for positional argument types #10

Open
1 task
maxlandon opened this issue Jan 1, 2023 · 0 comments
Open
1 task

Use the flags.Value interface for positional argument types #10

maxlandon opened this issue Jan 1, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@maxlandon
Copy link
Member

Currently, the code parsing the positional argument words (strings) onto their type is directly taken from
the old go-flags code. While not working badly, the range of types supported is largely inferior to the range
of types supported for flags.

This is not really hard, and should not represent a huge workload.
I just realized this would be better toward the end of my work.

  • Use the flags.Value type for generating positional arguments slots and parsing words onto them.
@maxlandon maxlandon added the enhancement New feature or request label Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant