diff options
author | Leah Neukirchen <leah@vuxu.org> | 2023-08-12 15:39:24 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2023-08-12 15:39:24 +0200 |
commit | 64e90e76acb4d6575273c57eaa02c9b4f2665b91 (patch) | |
tree | f7ee165b2c0eafdb934089cc4cc446149996e6d3 | |
parent | a1c1be8060326a6c795597c6833c952c8b1034dd (diff) | |
download | lr-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.c | 2 |
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; |