From bc42adea73ec44cd4625cd216879eb8c9ddf2174 Mon Sep 17 00:00:00 2001 From: boyska Date: Fri, 2 Oct 2020 11:13:40 +0200 Subject: [PATCH] polishing --- banana/cli.py | 4 ++-- setup.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/banana/cli.py b/banana/cli.py index 2362868..f6033d8 100644 --- a/banana/cli.py +++ b/banana/cli.py @@ -17,7 +17,6 @@ def get_codec(args): kwargs["dictstart"] = args.dictstart if args.shiftend: kwargs["shiftend"] = args.shiftend - print(kwargs) return banana.Codec(**kwargs) @@ -69,7 +68,8 @@ def main(): args = parser.parse_args() if not hasattr(args, "func"): - print("metti un sottocomando!") + print("You need to select one subcommand. \nUse --help", file=sys.stderr) + # parser.print_help() sys.exit(1) args.func(args) diff --git a/setup.py b/setup.py index 4a06811..bb61bad 100644 --- a/setup.py +++ b/setup.py @@ -35,6 +35,7 @@ setup( entry_points={ "console_scripts": [ "banana=banana.cli:main", + "accavallavacca=banana.cli:main", "ananas2dec=banana.cli:ananas2dec", "avocado2dec=banana.cli:avocado2dec", "banana2dec=banana.cli:banana2dec",