M1-PCA-Project/mains/role/client/run.py

13 lines
315 B
Python

import argparse
from . import action
def run(parser: argparse.ArgumentParser, arguments: argparse.Namespace):
match arguments.action:
case "vote":
action.vote.run(parser, arguments)
# if the subcommand is not known, show the help
case _:
parser.print_usage()