def main(args: list, pipe: bool) -> Result:
    '\n    # TODO: Add docstring for manpage\n    '
    (args, parser) = parse_args(args)
    if parser.error_message:
        if (not args.version):
            return output(f'{__COMMAND__}: {parser.error_message}', pipe, success=False)
    if args.version:
        return output(f'ifconfig (blackhat netutils) {__VERSION__}', pipe)
    if (not args):
        return output('', pipe)
    else:
        result = getifaddrs()
        return output(result.data.ifa_addr, pipe)
# TODO: Add docstring for manpage
def main(args: list, pipe: bool) -> Result:
    '\n    \n    '
    (args, parser) = parse_args(args)
    if parser.error_message:
        if (not args.version):
            return output(f'{__COMMAND__}: {parser.error_message}', pipe, success=False)
    if args.version:
        return output(f'ifconfig (blackhat netutils) {__VERSION__}', pipe)
    if (not args):
        return output(, pipe)
    else:
        result = getifaddrs()
        return output(result.data.ifa_addr, pipe)