summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2020-11-09 16:34:24 +0100
committerMS <ms@taler.net>2020-11-09 16:34:24 +0100
commit7fa5979037ed07d2f85ba1c528eec3f83b51bcef (patch)
treea00883766a4960c3a16729d85600c66c8d9c44bb
parentc5ad626047e616ce7ed9da25377e3fe1e37211bf (diff)
downloadbank-7fa5979037ed07d2f85ba1c528eec3f83b51bcef.tar.gz
bank-7fa5979037ed07d2f85ba1c528eec3f83b51bcef.tar.bz2
bank-7fa5979037ed07d2f85ba1c528eec3f83b51bcef.zip
restoring old CLI, part I
-rwxr-xr-xbin/taler-bank-manage5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/taler-bank-manage b/bin/taler-bank-manage
index ace3b84..e1814c4 100755
--- a/bin/taler-bank-manage
+++ b/bin/taler-bank-manage
@@ -50,7 +50,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "talerbank.settings")
help="Set HTTP as the serving protocol (taking precedence over the config.), and set the port.",
type=int
)
-@click.option("--config", help="Path to the config file.")
+@click.option("-c", "--config", help="Path to the config file.")
@click.option("--with-db", help="Database connection string.")
def cli(ctx, http_port, config, with_db):
if with_db:
@@ -77,7 +77,8 @@ def serve(obj):
@cli.command(
help="Invoke 'django' sub-commands",
- context_settings=dict(ignore_unknown_options=True)
+ context_settings=dict(ignore_unknown_options=True),
+ name="django"
)
@click.argument("args", nargs=-1, type=click.UNPROCESSED)
def handle_django(args):