Closed alegomes closed 6 months ago
Following you suggestion on #505, I'm using the subcommand chaining strategy. However, I ran into the issue bellow:
In the following example:
myCmd subCmd1 --optA=x subCmd2 --optB=y anArgument
Is it possible to make anArgument an argument of both subcommands subCmd1 and subCmd2?
anArgument
subCmd1
subCmd2
thanks!
No, but you can pass information between subcommands with a context object
Following you suggestion on #505, I'm using the subcommand chaining strategy. However, I ran into the issue bellow:
In the following example:
myCmd subCmd1 --optA=x subCmd2 --optB=y anArgument
Is it possible to make
anArgument
an argument of both subcommandssubCmd1
andsubCmd2
?thanks!