Skip to content

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

Closed
FrankRay78 wants to merge 1 commit into
spectreconsole:mainfrom
FrankRay78:1059-Ability-to-add-command-line-values-to-remaining-arguments-if-they-cannot-be-set-on-the-settings-class
Closed

1059 Ability to add command line values to remaining arguments if they cannot be set on the settings class#1102
FrankRay78 wants to merge 1 commit into
spectreconsole:mainfrom
FrankRay78:1059-Ability-to-add-command-line-values-to-remaining-arguments-if-they-cannot-be-set-on-the-settings-class

Conversation

@FrankRay78

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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