add example to man page and correct test comment

This commit is contained in:
Jonah Caplan 2021-10-12 01:32:55 -04:00
parent 2e115df9e7
commit 12650a0913
2 changed files with 4 additions and 1 deletions

3
doc/fd.1 vendored
View file

@ -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)

View file

@ -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);