<filename>analyser/__init__.py
from optparse import OptionParser
from analyse import read_database


parser = OptionParser()
parser.add_option("-l", "--limit", type="int", dest="limit", default=5,
        help="display only [l] results for each analysis.", metavar="NUMBER")

parser.add_option("-n", "--messages-number", type="int", dest="n", default=20,
        help="handle [n] bunch of messages", metavar="NUMBER")

parser.add_option("-c", "--contact", type="string", dest="contact",
        action="store",
        help="specify a contact to stalk the conversation with",
        metavar="STRING")

parser.add_option("-u", "--update", dest="update", action="store_true",
        help="force updating values.",
        metavar="BOOLEAN")

'''
parser.add_option("-s", "--see", dest="see", action="store_true",
        help="see database", metavar="BOOLEAN")

parser.add_option("-r", "--reset", dest="reset", action="store_true",
        help="reset database", metavar="BOOLEAN")

'''

parser.add_option("-w", "--what", type="choice", dest="what", action="store",
        default="all", choices=["ratios", "subjects", "all"],
        help="choose how to analysis your conversation(s)", metavar="STRING")

parser.add_option("-d", "--debug", dest="debug", action="store_true",
        help="print debug messages", metavar="BOOLEAN")

(options, args) = parser.parse_args()
if __name__ == "__main__":
    read_database(options)

<filename>analyser/__init__.py
from optparse import OptionParser
from analyse import read_database


parser = OptionParser()
parser.add_option("-l", "--limit", type="int", dest="limit", default=5,
        help="display only [l] results for each analysis.", metavar="NUMBER")

parser.add_option("-n", "--messages-number", type="int", dest="n", default=20,
        help="handle [n] bunch of messages", metavar="NUMBER")

parser.add_option("-c", "--contact", type="string", dest="contact",
        action="store",
        help="specify a contact to stalk the conversation with",
        metavar="STRING")

parser.add_option("-u", "--update", dest="update", action="store_true",
        help="force updating values.",
        metavar="BOOLEAN")

'''
parser.add_option("-s", "--see", dest="see", action="store_true",
        help="see database", metavar="BOOLEAN")

parser.add_option("-r", "--reset", dest="reset", action="store_true",
        help="reset database", metavar="BOOLEAN")

'''

parser.add_option("-w", "--what", type="choice", dest="what", action="store",
        default="all", choices=["ratios", "subjects", "all"],
        help="choose how to analysis your conversation(s)", metavar="STRING")

parser.add_option("-d", "--debug", dest="debug", action="store_true",
        help="print debug messages", metavar="BOOLEAN")

(options, args) = parser.parse_args()
if __name__ == "__main__":
    read_database(options)

parser.add_option("-s", "--see", dest="see", action="store_true",         help="see database", metavar="BOOLEAN")  parser.add_option("-r", "--reset", dest="reset", action="store_true",         help="reset database", metavar="BOOLEAN")