summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-01-20 11:53:36 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-01-20 12:36:08 -0500
commitb2b97e301892d89b9909bed17f4299e09af1e33b (patch)
tree1083300b9f710b8fcd50c9bfec6fa83b1575b9c8 /parse.c
parent50432108fb3ef826301626b94c5e82ad2ab2bd75 (diff)
downloadbfs-b2b97e301892d89b9909bed17f4299e09af1e33b.tar.xz
printf: Add %w and %Wk for file birth times
%w and %W were chosen to match the format specifiers for file birth times from stat(1)
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index e71aa47..2811004 100644
--- a/parse.c
+++ b/parse.c
@@ -2406,7 +2406,7 @@ static struct expr *parse_help(struct parser_state *state, int arg1, int arg2) {
cfprintf(cout, " %{blu}-Btime%{rs} %{bld}[-+]N%{rs}\n");
cfprintf(cout, " Find files Birthed %{bld}N%{rs} minutes/days ago\n");
cfprintf(cout, " %{blu}-Bnewer%{rs} %{bld}FILE%{rs}\n");
- cfprintf(cout, " Find files Birthed more recently than %{bld}FILEa%{rs} was modified\n");
+ cfprintf(cout, " Find files Birthed more recently than %{bld}FILE%{rs} was modified\n");
cfprintf(cout, " %{blu}-depth%{rs} %{bld}[-+]N%{rs}\n");
cfprintf(cout, " Find files with depth %{bld}N%{rs}\n");
cfprintf(cout, " %{blu}-gid%{rs} %{bld}NAME%{rs}\n");
@@ -2448,6 +2448,11 @@ static struct expr *parse_help(struct parser_state *state, int arg1, int arg2) {
cfprintf(cout, " %{blu}-nohidden%{rs}\n");
cfprintf(cout, " Match hidden files, or filter them out\n\n");
+ cfprintf(cout, " %{blu}-printf%{rs} %{bld}FORMAT%{rs}\n");
+ cfprintf(cout, " %{blu}-fprintf%{rs} %{bld}FORMAT%{rs} %{bld}FILE%{rs}\n");
+ cfprintf(cout, " The additional format directives %%w and %%W%{bld}k%{rs} for printing file birth times\n");
+ cfprintf(cout, " are supported.\n\n");
+
cfprintf(cout, "%s\n", BFS_HOMEPAGE);
state->just_info = true;