From 915bca1c343dbb8f6a11f9acb437730eaa219eda Mon Sep 17 00:00:00 2001 From: MS Date: Mon, 2 Nov 2020 18:51:14 +0100 Subject: launcher script handle the case where no sub-commands were given upon invocation. --- bin/taler-bank-manage | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/taler-bank-manage b/bin/taler-bank-manage index 81f3651..7c06b0d 100755 --- a/bin/taler-bank-manage +++ b/bin/taler-bank-manage @@ -169,6 +169,9 @@ P = SUB.add_parser('config', help="show config") P.set_defaults(func=handle_config) ARGS = PARSER.parse_args() +if not ARGS.func: + print("Please give one of the following sub-commands: serve, django, config") + sys.exit(1) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "talerbank.settings") -- cgit v1.2.3