[PATCH] Another multi-argument patch



Hi.

This is another multi-argument patch. This code will allow meld to
recognize tkdiff syntax.


diff --git a/meldapp.py b/meldapp.py
index 60f6b67..64ff7bb 100644
--- a/meldapp.py
+++ b/meldapp.py
@@ -870,6 +870,19 @@ def main():
     if len(args) == 0:
         pass
 
+    # tkdiff-like specification of input files
+    elif ":" in args:
+        r = []
+        for x in args:
+            if x == ":":
+                if len(r) > 1:
+                    app.append_diff(r)
+                    r = []
+            else:
+                r.append(x)
+        if len(r) > 1:
+            app.append_diff(r)
+
     elif len(args) == 1:
         a = args[0]
         if os.path.isfile(a):
-- 
Paul P 'Stingray' Komkoff Jr // http://stingr.net/key <- my pgp key
 This message represents the official view of the voices in my head



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]