13 lines
315 B
Python
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()
|