Actually, the solution turned out to be very easy.
Define the arguments outside the decorator. This returns a function
which can be used to decorate more than one function.
cmd1opt = argh.arg(...options)
@cmd1opt
def cmd1(args)
...
cmd2opt = argh.arg(...options)
@cmd2opt
def cmd2(args)
....
# composite command:
@cmd1opt
@cmd2opt
def composite_command(args)
...
And you're done.
Ted
--
Frango ut patefaciam -- I break so that I may reveal