Skip to content

Commit

Permalink
fix main parser
Browse files Browse the repository at this point in the history
  • Loading branch information
jykr committed Mar 30, 2024
1 parent f5ee597 commit 4be0796
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bean/cli/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)
Expand Down

0 comments on commit 4be0796

Please sign in to comment.