From 4be0796461cc15e01c03eea4cafec07d016d39f1 Mon Sep 17 00:00:00 2001 From: jykr Date: Fri, 29 Mar 2024 22:15:16 -0400 Subject: [PATCH] fix main parser --- bean/cli/execute.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bean/cli/execute.py b/bean/cli/execute.py index 8932e5e..4300431 100755 --- a/bean/cli/execute.py +++ b/bean/cli/execute.py @@ -15,7 +15,7 @@ from bean.cli.create_screen import main as create_screen -def get_base_parser(): +def get_parser(): parser = argparse.ArgumentParser(prog="bean") subparsers = parser.add_subparsers(help="Subcommands", dest="subcommand") count_parser = subparsers.add_parser("count", help="count") @@ -40,7 +40,6 @@ def get_base_parser(): def main() -> None: parser = get_parser() - global_parser = parser args = parser.parse_args() if args.subcommand == "count": count(args)