Files
service-aware-frontend/pkgs/clan-cli/clan_cli/webui/__main__.py
2023-10-03 13:12:44 +02:00

16 lines
474 B
Python

import argparse
from . import register_parser
if __name__ == "__main__":
# this is use in our integration test
parser = argparse.ArgumentParser()
# call the register_parser function, which adds arguments to the parser
register_parser(parser)
args = parser.parse_args()
# call the function that is stored
# in the func attribute of args, and pass args as the argument
# look into register_parser to see how this is done
args.func(args)