import argparse
import sys

from homebrew import (
    __version__,
    HomeBrew,
)


def parse_args(args):
    parser = argparse.ArgumentParser(description="Get homebrew info")
    parser.add_argument("-v", "--version", action="version", version=__version__)
    return parser.parse_args(args)


def main():
    parse_args(sys.argv[1:])
    HomeBrew().info

import argparse
import sys

from homebrew import (
    __version__,
    HomeBrew,
)


def parse_args(args):
    parser = argparse.ArgumentParser(description="Get homebrew info")
    parser.add_argument("-v", "--version", action="version", version=__version__)
    return parser.parse_args(args)


def main():
    parse_args(sys.argv[1:])
    HomeBrew().info
