#!/usr/bin/env python

import sys
import client_wrap

def get_keys(client):
    key_str = client.GetKeys()
    keys = key_str.split (';')
    del keys[-1]

    if len(keys) == 0:
        sys.exit()

    return keys

def print_keys(client, keys):
    for key in keys:
        value = client.ReadLong(key)
        print "%s = %d" % (key, value)

def main():
    client = client_wrap.ClientWrap("get_test.log", "ipc:///var/run/zero-cache/0", 0)

    keys = get_keys(client)

    print_keys(client, keys)

if __name__ == "__main__":
    main()

@@ -34,27 +34,495 @@
 %0Aimport 
-client_wrap
+argparse%0Aimport client_wrap%0A%0Adef parse_args():%0A    parser = argparse.ArgumentParser()%0A    parser.add_argument(%22-t%22, %22--type%22, help=%22type of the cached data%22, default=%22double%22)%0A    parser.add_argument(%22-c%22, %22--connection%22, help=%22connection string%22, default=%22ipc:///var/run/zero-cache/0%22)%0A    parser.add_argument(%22-w%22, %22--column%22, help=%22number of columns%22, type=int, default=1)%0A    parser.add_argument(%22-l%22, %22--log%22, help=%22log file name%22, default=%22%22)%0A    args = parser.parse_args()
 %0A%0Adef ge
@@ -813,24 +813,41 @@
 def main():%0A
+    parse_args()%0A
     client =
@@ -920,17 +920,16 @@
 /0%22, 0)%0A
-%0A
     keys
@@ -948,17 +948,16 @@
 client)%0A
-%0A
     prin

Add the parsing arguments function