def parse_args(cli, args):
    """
    Parses command line arguments and executes the chosen subcommand.
    :param cli: Cli command line interface object
    :param args: list of command line arguments (e.g. sys.argv)
    """
    namespace = cli.parse_args(args)
    namespace.func(namespace)
