commit a391419bea69ad05c732f1a6307f3097e4b732f7
parent 4c9812bd177fd7133b5ae8dc1d1f6807985dcd7a
Author: MS <ms@taler.net>
Date: Wed, 22 Jul 2020 15:46:27 +0200
argument help
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/bin/.taler-merchant-demos.swp b/bin/.taler-merchant-demos.swp
Binary files differ.
diff --git a/bin/taler-merchant-demos b/bin/taler-merchant-demos
@@ -77,13 +77,16 @@ def handle_serve_http(config, whichShop, port=None):
"--http", spec,
"--module", "talermerchantdemos.{}:app".format(whichShop))
-@click.command()
+@click.command("Global shop launcher")
@click.option("--config", help="Configuration file", required=False)
@click.option("--serve-http", help="Serve via HTTP", is_flag=True, required=False)
@click.option("--port", help="HTTP port to serve (if not given, it's picked from config)", required=False, type=int)
@click.option("--serve-uwsgi", help="Serve via UWSGI (default)", required=False)
@click.argument("whichShop")
def demos(config, serve_http, port, serve_uwsgi, whichShop):
+ """
+ WHICHSHOP is one of: blog, donations, or survey.
+ """
if config:
os.environ["TALER_CONFIG_FILE"] = config
config_obj = TalerConfig.from_file(os.environ.get("TALER_CONFIG_FILE"))