clikt
clikt copied to clipboard
Question: one single argument for multiple repeating subcommands
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
?
thanks!
No, but you can pass information between subcommands with a context object