Skip to content
Myr

Add --changed-after alias.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

And make some small tweaks to the help text and man page.

authored by Thayne McCombs · committed by Thayne McCombs · parent db2590d · Browse files · 2 files+16 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Closes: #982

Diff stats

2 files+16 added−5 removed

  • other:+16 added−5 removed

2 files+16 added−5 removed

modified:doc/fd.1+9 added-3 removed
284 unmodified lines
285Files with modification times greater than the argument will be returned.286The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point287in time in either full RFC3339 format with time zone, or as a date or datetime in the288local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).289\fB\-\-change-newer-than\fR,290.B --newer291or289.B --change-newer-than290can be used as an alias.292.B --changed-after293can be used as aliases.294295Examples:296 \-\-changed-within 2weeks297 \-\-change-newer-than "2018-10-27 10:00:00"298 \-\-newer 2018-10-27299.TP300.BI "\-\-changed-before " date|duration301Filter results based on the file modification time.302Files with modification times less than the argument will be returned.303The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point304in time in either full RFC3339 format with time zone, or as a date or datetime in the305local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).306.B --change-older-than307or308.B --older303can be used as an alias.309can be used as aliases.310311Examples:312 \-\-changed-before "2018-10-27 10:00:00"313 \-\-change-older-than 2weeks
154 unmodified lines
modified:src/cli.rs+7 added-2 removed
333 unmodified lines
334 #[arg(335 long,336 alias("change-newer-than"),337 alias("newer"),338 alias("changed-after"),339 value_name = "date|dur",339 long_help = "Filter results based on the file modification time. The argument can be provided \340 long_help = "Filter results based on the file modification time. \341 Files with modification times greater than the argument are returned. \342 The argument can be provided \343 as a specific point in time (YYYY-MM-DD HH:MM:SS) or as a duration (10h, 1d, 35min). \344 If the time is not specified, it defaults to 00:00:00. \345 '--change-newer-than' or '--newer' can be used as aliases.\n\346 Examples:\n \
8 unmodified lines
355 long,356 alias("change-older-than"),357 alias("older"),358 value_name = "date|dur",356 long_help = "Filter results based on the file modification time. The argument can be provided \359 long_help = "Filter results based on the file modification time. \360 Files with modification times less than the argument are returned. \361 The argument can be provided \362 as a specific point in time (YYYY-MM-DD HH:MM:SS) or as a duration (10h, 1d, 35min). \363 '--change-older-than' or '--older' can be used as aliases.\n\364 Examples:\n \365 --changed-before '2018-10-27 10:00:00'\n \
425 unmodified lines