projects
/
python-bulletml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bad example YAML doc.
[python-bulletml.git]
/
bulletml-to-bulletyaml
diff --git
a/bulletml-to-bulletyaml
b/bulletml-to-bulletyaml
index
749ccde
..
89f861b
100755
(executable)
--- a/
bulletml-to-bulletyaml
+++ b/
bulletml-to-bulletyaml
@@
-6,6
+6,9
@@
import yaml
from bulletml import BulletML, bulletyaml
def main(argv):
from bulletml import BulletML, bulletyaml
def main(argv):
+ if not argv:
+ raise SystemExit("Usage: %s filename ..." % sys.argv[0])
+
for filename in argv:
print "# Loading", filename
print yaml.dump(BulletML.FromDocument(open(filename, "rU")))
for filename in argv:
print "# Loading", filename
print yaml.dump(BulletML.FromDocument(open(filename, "rU")))