How do you allow the CLIS Flask command to accept an argument?
It seems that the checkbox configures the Click Group object, so this does not work:
@app.cli.command() @app.cli.argument('email') def user_info(email): ...
@app.cli.commandshould only report clickit user_info. If you need arguments and other click functions, use also click.
@app.cli.command
click
user_info
@app.cli.command() @click.option('--email') def user_info(email): ...
Source: https://habr.com/ru/post/1679970/More articles:Why is map {} .compact faster than each_with_object ([])? - ruby | fooobar.comSort a list containing paths in Python. - pythonHow to use / understand the concepts of merging, overriding and add-ons AEM Sling - aemData transfer in startup.cs - c #How to collect warnings / notifications during the execution of a JDBC statement? - javaWhat is the correct way to tell the compiler that I want the variable to always be stored in a register? - c ++Error "E / ExtMediaPlayer-JNI: env-> IsInstanceOf" in an Android application - javaПри покупке приложения с размещенным контентом не работает, когда - iosIn-App-Purchase: A / B testing possible / allowed? - ab-testingHow to share ENV variables among Perl scripts - perlAll Articles