X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=blobdiff_plain;f=bulletml-to-bulletyaml;h=89f861bf3d459990c6b1dd3b33e3ea668b47bbfe;hp=749ccde1053c09b79f1c60eeef626be56e35abff;hb=HEAD;hpb=5942c31cd998d1575cbc2d16f3103c676852572d diff --git a/bulletml-to-bulletyaml b/bulletml-to-bulletyaml index 749ccde..89f861b 100755 --- a/bulletml-to-bulletyaml +++ b/bulletml-to-bulletyaml @@ -6,6 +6,9 @@ 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")))