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

Argh core #1584

Closed
wants to merge 0 commits into from
Closed

Argh core #1584

wants to merge 0 commits into from

Conversation

meatballhat
Copy link
Member

What type of PR is this?

  • foundational
  • scary
  • experimental

What this PR does / why we need it:

Swap out stdlib flag with the "argh" parser

Which issue(s) this PR fixes:

Closes #1583

Special notes for your reviewer:

This is highly experimental ⚠️ I don't expect reviews at this time, which is why the PR is in draft 💖

@meatballhat
Copy link
Member Author

While working through this mess, I'm realizing that by moving away from stdlib flag we are not only changing out the flag parsing but also the source of truth for existence, values, everything (?) I think this is generally a good thing, though, since the mismatch between urfave/cli's declarative shell and an imperative flag core has been a source of bugs and weirdness for a long time. I'm currently attempting to move the source of truth out to the urfave/cli declarative shell while using internal/argh only for parsing.

IDENT // char group without flag prefix: 'some' 'words'
ARG_DELIMITER // rune(0)
ASSIGN // '='
MULTI_VALUE_DELIMITER // ','
Copy link
Contributor

Choose a reason for hiding this comment

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

this changes based on scanner config so say eg ','

@meatballhat
Copy link
Member Author

reopening shortly...

@meatballhat meatballhat deleted the argh-core branch July 1, 2023 01:14
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.

Use a core flag parser other than stdlib flag to unlock wider range of arg types
2 participants