projects
/
python-bulletml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update URLs and documentation formats.
[python-bulletml.git]
/
bulletml-to-bulletyaml
diff --git
a/bulletml-to-bulletyaml
b/bulletml-to-bulletyaml
index c5f8c561e288284edd09ee3e8998eb7e40e32cff..89f861bf3d459990c6b1dd3b33e3ea668b47bbfe 100755
(executable)
--- a/
bulletml-to-bulletyaml
+++ b/
bulletml-to-bulletyaml
@@
-6,7
+6,11
@@
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:
for filename in argv:
+ print "# Loading", filename
print yaml.dump(BulletML.FromDocument(open(filename, "rU")))
if __name__ == "__main__":
print yaml.dump(BulletML.FromDocument(open(filename, "rU")))
if __name__ == "__main__":