[PATCH] Allow specifying > 2 files at command line
- From: Adrian Drzewiecki <adriand vmware com>
- To: meld-list gnome org
- Subject: [PATCH] Allow specifying > 2 files at command line
- Date: Thu, 05 Apr 2007 11:56:12 -0700
The attached patch to meldapp.py allows passing in multiple files to
compare at the command line.
Thanks,
-Adrian
P.S. I'm not subscribed to the list.
--- orig/meldapp.py 2007-04-05 11:51:16.027877000 -0700
+++ new/meldapp.py 2007-04-05 11:47:34.000000000 -0700
@@ -886,6 +886,11 @@
elif len(args) in (2,3):
app.append_diff(args)
+ elif len(args) % 2 == 0:
+ i = 0
+ while i < len(args):
+ app.append_diff([args[i], args[i+1]])
+ i = i + 2
else:
app.usage( _("Wrong number of arguments (Got %i)") % len(args))
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]