#!/bin/env python
# calcaulate the entropy of a string
# include helpful info and time to crack

import argparse
import sys




def main(argv=None):

    if argv is None:
        argv = sys.argv	


    parser = argparse.ArgumentParser()


    parser.add_argument('-p','--password',help='password to examine',
                        action='store',dest='passwd',type=str)

    parser.add_argument('-g','--generate',help='generate and examine a new password',
                        action='store_true',dest='generate')

    args = parser.parse_args(argv[1:])


if __name__ == "__main__":
    sys.exit(not main());

@@ -88,16 +88,148 @@
 to crack
+%0A# wikipedia entry for future reference%0A#  https://en.wikipedia.org/wiki/Password_strength#Entropy_as_a_measure_of_password_strength
 %0A%0Aimport
@@ -251,18 +251,16 @@
 t sys%0A%0A%0A
-%0A%0A
 def main

add wikipedia entry for future reference to pentropy.py