about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-08-12 15:39:24 +0200
committerLeah Neukirchen <leah@vuxu.org>2023-08-12 15:39:24 +0200
commit64e90e76acb4d6575273c57eaa02c9b4f2665b91 (patch)
treef7ee165b2c0eafdb934089cc4cc446149996e6d3
parenta1c1be8060326a6c795597c6833c952c8b1034dd (diff)
downloadlr-64e90e76acb4d6575273c57eaa02c9b4f2665b91.tar.gz
lr-64e90e76acb4d6575273c57eaa02c9b4f2665b91.tar.xz
lr-64e90e76acb4d6575273c57eaa02c9b4f2665b91.zip
allow -l and -F in any order
-l takes preference (and implies -F).

Closes #24.
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 1b81b00..17236c5 100644
--- a/lr.c
+++ b/lr.c
@@ -2502,7 +2502,7 @@ main(int argc, char *argv[])
 			Gflag += 2;  /* force color on */
 			break;
 		case 'D': Dflag++; Bflag = 0; break;
-		case 'F': format = type_format; break;
+		case 'F': if (!lflag) format = type_format; break;
 		case 'G': Gflag++; break;
 		case 'H': Hflag++; break;
 		case 'L': Lflag++; break;