import optparse


def parse_command_line(argv):
    """Command line options parser for the script
    """
    usage = "usage: %prog [options] <input file>"

    parser = optparse.OptionParser(add_help_option=False, usage=usage)
    parser.add_option("-i", "--import", action="store_true",
                      dest="importfile",
                      help="Import lat/long to database")
    parser.add_option("-a", "--askgeo", action="store_true",
                      dest="askgeo",
                      help="Request AskGeo for Zip code")
    parser.add_option("-o", "--output", action="store",
                      dest="output",
                      help="Output file with Zip code")
    parser.add_option("-?", "--help", action="help")

    return parser.parse_args(argv)