Skip to content

Commit cb385a4

Browse files
authored
Issue 624 newer older help text (#733)
* Document the newer and older aliases in the help text * Documentation for new older aliases, remove commas * Adds better clarification on alias usage for newer and older * Fixes inconsistencies in help text for newer and older aliases
1 parent efc71bc commit cb385a4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/app.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,12 @@ pub fn build_app() -> App<'static, 'static> {
442442
.long_help(
443443
"Filter results based on the file modification time. The argument can be provided \
444444
as a specific point in time (YYYY-MM-DD HH:MM:SS) or as a duration (10h, 1d, 35min). \
445-
'--change-newer-than' can be used as an alias.\n\
445+
If the time is not specified, it defaults to 00:00:00. \
446+
'--change-newer-than' or '--newer' can be used as aliases.\n\
446447
Examples:\n \
447448
--changed-within 2weeks\n \
448-
--change-newer-than '2018-10-27 10:00:00'",
449+
--change-newer-than '2018-10-27 10:00:00'\n \
450+
--newer 2018-10-27",
449451
),
450452
)
451453
.arg(
@@ -460,10 +462,11 @@ pub fn build_app() -> App<'static, 'static> {
460462
.long_help(
461463
"Filter results based on the file modification time. The argument can be provided \
462464
as a specific point in time (YYYY-MM-DD HH:MM:SS) or as a duration (10h, 1d, 35min). \
463-
'--change-older-than' can be used as an alias.\n\
465+
'--change-older-than' or '--older' can be used as aliases.\n\
464466
Examples:\n \
465467
--changed-before '2018-10-27 10:00:00'\n \
466-
--change-older-than 2weeks",
468+
--change-older-than 2weeks\n \
469+
--older 2018-10-27",
467470
),
468471
)
469472
.arg(

0 commit comments

Comments
 (0)