]> git.proxmox.com Git - debcargo-conf.git/commitdiff
rust-excuses.py: improve a bit the script
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 15 Aug 2019 09:40:43 +0000 (11:40 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 15 Aug 2019 09:40:43 +0000 (11:40 +0200)
dev/rust-excuses.py

index d6e3ba0874205431ba5c831acf2c8925f9350a3d..aa1dd83940bc1e895528b5708010f0f1a6ce35bc 100755 (executable)
@@ -7,6 +7,14 @@ import subprocess
 import sys
 import yaml
 
+if len(sys.argv) != 3:
+    print("""Generates dot files to show the migration deps
+Usage: %s excuses.dot excuses_arch.dot
+
+Expects excuses.yaml in the current dir
+    """ % sys.argv[0])
+    sys.exit(0)
+
 print("parsing excuses.yaml...", file=sys.stderr)
 with open("excuses.yaml") as fp:
        y = yaml.load(fp)