def main():
    if ((len(sys.argv) > 1) and (sys.argv[1] != '-')):
        with open(sys.argv[1], 'rb') as fp:
            scanner = pcapng.FileScanner(fp)
            dump_information(scanner)
    else:
        scanner = pcapng.FileScanner(sys.stdin)
        dump_information(scanner)
def main():
    if ((len(sys.argv) > 1) and (sys.argv[1] != '-')):
        with open(sys.argv[1], 'rb') as fp:
            scanner = pcapng.FileScanner(fp)
            dump_information(scanner)
    else:
        scanner = pcapng.FileScanner(sys.stdin)
        dump_information(scanner)