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
Provenance
- Commit
67cf524- Tree
4d3fce4- Author
Thayne McCombs <astrothayne@gmail.com>- Committer
Thayne McCombs <astrothayne@gmail.com>- Parent
db2590d
2 files changed+16 added−5 removed
modified:doc/fd.1+9 added-3 removed
284 unmodified lines285 Files with modification times greater than the argument will be returned.286 The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point287 in time in either full RFC3339 format with time zone, or as a date or datetime in the288 local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).289+\fB\-\-change-newer-than\fR,290+.B --newer291+or289-.B --change-newer-than290-can be used as an alias.292+.B --changed-after293+can be used as aliases.294 295 Examples:296 \-\-changed-within 2weeks297 \-\-change-newer-than "2018-10-27 10:00:00"298+ \-\-newer 2018-10-27299 .TP300 .BI "\-\-changed-before " date|duration301 Filter results based on the file modification time.302 Files with modification times less than the argument will be returned.303 The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point304 in time in either full RFC3339 format with time zone, or as a date or datetime in the305 local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).306 .B --change-older-than307+or308+.B --older303-can be used as an alias.309+can be used as aliases.310 311 Examples:312 \-\-changed-before "2018-10-27 10:00:00"313 \-\-change-older-than 2weeks154 unmodified linesmodified:src/cli.rs+7 added-2 removed
333 unmodified lines334 #[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 lines355 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