summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-25 11:43:10 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-25 11:43:10 -0300
commit673aade18a3e47118754bd2abc2b3479a5f4f39b (patch)
treed4d21c293be8255e1bdf7f468bce01a0e071c2d9 /main.c
parent06fd6964e9a3773fba73d760326bb9f561c611ba (diff)
downloadeeshow-673aade18a3e47118754bd2abc2b3479a5f4f39b.tar.gz
eeshow-673aade18a3e47118754bd2abc2b3479a5f4f39b.tar.bz2
eeshow-673aade18a3e47118754bd2abc2b3479a5f4f39b.zip
option -L to suppress page layout; non-interactive diff always implies -L
This means that we can now do things like eeshow 6a9f71:neo900.pro neo900_SS_5.sch -- \ diff -s 2 -o diff.png neo900.pro neo900_SS_5.sch
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 705ac2e..51821b6 100644
--- a/main.c
+++ b/main.c
@@ -166,7 +166,7 @@ int main(int argc, char **argv)
if (!have_dashdash)
gtk_init(&argc, &argv);
- while ((c = getopt(dashdash, argv, "ervC:F:H:N:OPSV")) != EOF)
+ while ((c = getopt(dashdash, argv, "ervC:F:H:LN:OPSV")) != EOF)
switch (c) {
case 'e':
extra = 1;
@@ -186,6 +186,9 @@ int main(int argc, char **argv)
case 'H':
history = optarg;
break;
+ case 'L':
+ suppress_page_layout = 1;
+ break;
case 'N':
limit = atoi(optarg);
break;