Commit 5d645926 authored by Tres Seaver's avatar Tres Seaver

  - Do what the docstring says:

    If -i is specified or no action is specified on the command line, a
    "shell" interpreting actions typed interactively is started.
parent 8a6cf5c1
...@@ -132,6 +132,8 @@ def main(args=None): ...@@ -132,6 +132,8 @@ def main(args=None):
c = ZopeCmd(options) c = ZopeCmd(options)
if options.args: if options.args:
c.onecmd(" ".join(options.args)) c.onecmd(" ".join(options.args))
else:
options.interactive = 1
if options.interactive: if options.interactive:
try: try:
import readline import readline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment