X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=blobdiff_plain;f=bulletml-to-bulletyaml;h=89f861bf3d459990c6b1dd3b33e3ea668b47bbfe;hp=c5f8c561e288284edd09ee3e8998eb7e40e32cff;hb=HEAD;hpb=29b24c8fc17a3bdcccd1ac853eee5b90c6fd0856 diff --git a/bulletml-to-bulletyaml b/bulletml-to-bulletyaml index c5f8c56..89f861b 100755 --- a/bulletml-to-bulletyaml +++ b/bulletml-to-bulletyaml @@ -6,7 +6,11 @@ import yaml 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"))) if __name__ == "__main__":