8000 1059 Ability to add command line values to remaining arguments if they cannot be set on the settings class by FrankRay78 · Pull Request #1102 · spectreconsole/spectre.console · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

1059 Ability to add command line values to remaining arguments if they cannot be set on the settings class #1102

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

Conversation

FrankRay78
Copy link
Contributor

This PR implements #1059, 'Ability to add command line flags and their values to remaining arguments if they cannot be set on the settings class'

A configuration setting called ConvertFlagsToRemainingArgumentsIfCannotBeAssigned has been added to the CommandAppSettings interface/class, which determines whether this behaviour has been turned on (defaults to off to ensure backward compatibility). CommandTreeParser checks this setting prior to deciding whether to throw the Flags cannot be set. exception, or alternatively, to add the flag and its value to the remaining arguments collection.

This PR superceeds #1060

@FrankRay78
Copy link
Contributor Author

FYI - This PR has been bundled in #1103, should it wish to be reviewed/merged alongside related issues. If so, this PR should be closed with no further action.

@FrankRay78
Copy link
Contributor Author

I'm closing this PR as it's been bundled into #1103 and it's too onerous for me to keep rebasing this, and the other bundled PR's, to keep up with the upstream/main branch as it moves forward with various other commits.

@FrankRay78 FrankRay78 closed this Mar 1, 2023
@FrankRay78 FrankRay78 deleted the 1059-Ability-to-add-command-line-values-to-remaining-arguments-if-they-cannot-be-set-on-the-settings-class branch April 3, 2023 13:21
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.

1 participant
0