3 import sys, getopt, readline
7 out.write("usage: pdm-repl [-h] SOCKET\n")
9 opts, args = getopt.getopt(sys.argv[1:], "h")
18 cl = pdm.cli.replclient(args[0])
19 except Exception as e:
20 sys.stderr.write("%s: %s\n" % (args[0], e))
29 line = raw_input("% ")
33 sys.stdout.write(cl.run(buf))
38 compile(line, "Nought", "eval")
42 sys.stdout.write(cl.run(line))