You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say I have the following command in which mysubcommand is a repeatable subcommand: mycommand mysubcommand param mysubcommand -t test param
In this case the first subcommand's default value for the -t option is not set correctly by Interpreter.applyDefaultValues(). The reason seems to be that parsing the second subcommand adds the -t option to the set of initialized arguments: Set<ArgSpec> initialized. This set is then also used when setting the default values of the first subcommand. Thus applyDefaultValues() falsely believes it is already initialized.
The text was updated successfully, but these errors were encountered:
Say I have the following command in which mysubcommand is a repeatable subcommand:
mycommand mysubcommand param mysubcommand -t test param
In this case the first subcommand's default value for the -t option is not set correctly by Interpreter.applyDefaultValues(). The reason seems to be that parsing the second subcommand adds the -t option to the set of initialized arguments:
Set<ArgSpec> initialized
. This set is then also used when setting the default values of the first subcommand. ThusapplyDefaultValues()
falsely believes it is already initialized.The text was updated successfully, but these errors were encountered: