mercurial/minirst.py
changeset 14433 7658221da551
parent 14168 135e244776f0
child 15012 ee766af457ed
--- a/mercurial/minirst.py	Thu May 26 11:11:34 2011 +0200
+++ b/mercurial/minirst.py	Thu May 26 10:46:34 2011 +0200
@@ -467,10 +467,10 @@
         print
         return blocks
 
-    text = util.readfile(sys.argv[1])
+    text = sys.stdin.read()
     blocks = debug(findblocks, text)
     blocks = debug(findliteralblocks, blocks)
-    blocks, pruned = debug(prunecontainers, blocks, sys.argv[2:])
+    blocks, pruned = debug(prunecontainers, blocks, sys.argv[1:])
     blocks = debug(inlineliterals, blocks)
     blocks = debug(splitparagraphs, blocks)
     blocks = debug(updatefieldlists, blocks)