-
|
I have reason to build a command tree in an app I'm working on that is deeper than just The general structure of my code looks something like this: ag = flask.cli.AppGroup('foo')
@ag.group('bar')
def bar():
pass
@bar.command('baz')
@bar.option('-x', '--xcellent')
@bar.argument('party')
def bar_baz(xcellent, party):
passHowever, I'm getting an exception indicating that groups do not have an I also tried doing Is what I'm trying to do here actually permitted, and I'm just going about it wrong? Or do I need to rethink my command structure? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I'm embarassed that I didn't notice this earlier, but the |
Beta Was this translation helpful? Give feedback.
I'm embarassed that I didn't notice this earlier, but the
optionandargumentdecorators above should be@click.optionand@click.argument, not@bar.... Leaving this here in case anyone else makes the same mistake, so this can be found.