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

feat: add preparse hook #1005

Merged
merged 2 commits into from
Mar 22, 2024
Merged

feat: add preparse hook #1005

merged 2 commits into from
Mar 22, 2024

Conversation

mdonnalley
Copy link
Contributor

Adds preparse hook that allows people to manipulate the argv before it gets processed by Parser

  • Only the root plugin can use the preparse hook - all others will be ignored. This is mainly to avoid conflicts between different hooks and to prevent untrusted plugins from maliciously manipulating the argv
  • See test/parser/fixtures/preparse-plugin for an example implementation

Fixes #962
@W-15213828@

@mshanemc mshanemc merged commit 80745c4 into main Mar 22, 2024
79 checks passed
@mshanemc mshanemc deleted the mdonnalley/preparse branch March 22, 2024 18:00
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.

[Feature request] Alias a single flag to a set of multiple flags
2 participants