From 12650a09133fab854a5bd6f5ec2a42928b059a57 Mon Sep 17 00:00:00 2001 From: Jonah Caplan Date: Tue, 12 Oct 2021 01:32:55 -0400 Subject: [PATCH] add example to man page and correct test comment --- doc/fd.1 | 3 +++ tests/tests.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/fd.1 b/doc/fd.1 index 69e84385..ee5e5cea 100644 --- a/doc/fd.1 +++ b/doc/fd.1 @@ -405,5 +405,8 @@ $ fd -e py .TP .RI "Open all search results with vim:" $ fd pattern -X vim +.TP +.RI "Show ./ prefix in results by specifying search path:" +$ fd pattern ./ .SH SEE ALSO .BR find (1) diff --git a/tests/tests.rs b/tests/tests.rs index 80a0d017..d873f84a 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1902,7 +1902,7 @@ fn test_error_if_hidden_not_set_and_pattern_starts_with_dot() { te.assert_output(&[".gitignore"], ""); } -/// Show "./" prefix if the --no-strip flag is provided +/// Show "./" prefix in results if a search path is provided #[test] fn test_no_strip() { let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);