-
Notifications
You must be signed in to change notification settings - Fork 426
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
Repeated subcommands do not work correctly with programmatic API #1010
Comments
To follow up on discussion with @diba1013 on #1007:
I am still doing analysis to understand exactly how "deep" the copy of the Each There already exists a mechanism for this: there was a similar requirement for argument groups, which can also be repeatable. So, the For For repeatable subcommands we would need to copy the There may be other details to iron out with copying options and positional parameters, but let's leave it at that for now. Another item is subcommands and mixins. Subcommands have a reference to their parent command. So if we copy a |
…ust against programmatic changes
This is a follow-up ticket to #1007.
That ticket fixed things so that repeatable subcommands correctly pick up any programmatic changes made via public
CommandLine
methods after theCommandLine
instance was constructed.What is remaining is that repeatable subcommands will not correctly pick up
CommandSpec
objects that were created programmatically or modified programmatically.Applications that programmatically add subcommands or mixins, or build
CommandSpec
by programmatically creating and addingOptionSpec
andPositionalParamSpec
objects will not work correctly in repeatable subcommands.The text was updated successfully, but these errors were encountered: