diff options
| author | Quentin Rameau <quinq@fifth.space> | 2023-03-22 23:54:42 +0100 |
|---|---|---|
| committer | Felix Van der Jeugt <felix.vanderjeugt@posteo.net> | 2023-05-23 20:40:58 +0200 |
| commit | ab23e5f5f37ead444bd527ef189349e53130d819 (patch) | |
| tree | d315e569cc844a14afab8047729f8348c6cdba5d /man | |
| parent | 364d21291a0a3848efeed615e5da69c757a5d2b0 (diff) | |
| download | vis-ab23e5f5f37ead444bd527ef189349e53130d819.tar.gz vis-ab23e5f5f37ead444bd527ef189349e53130d819.tar.xz | |
vis-complete: Fix commandline options handling
Diffstat (limited to 'man')
| -rw-r--r-- | man/vis-complete.1 | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/man/vis-complete.1 b/man/vis-complete.1 index 9ad695c..d8542bb 100644 --- a/man/vis-complete.1 +++ b/man/vis-complete.1 @@ -1,4 +1,4 @@ -.Dd January 15, 2017 +.Dd March 21, 2023 .Dt VIS-COMPLETE 1 .Os Vis VERSION . @@ -8,14 +8,12 @@ . .Sh SYNOPSIS .Nm vis-complete -.Op Fl -file -.Op Fl -word +.Op Fl -file | -word .Op Ar -- -.Op Ar pattern +.Ar pattern .Pp .Nm vis-complete -.Fl h | -.Fl -help +.Fl h | -help . .Sh DESCRIPTION .Nm vis-complete @@ -36,17 +34,16 @@ This passes .Ar pattern to .Nm find -to obtain a list of matching file names. +to obtain a list of matching file names +(this is the default). .It Fl -word This reads standard input to obtain a list of lines matching .Ar pattern . .It Fl - -If this token is encountered before the first non-option argument, -all following arguments will be treated as pattern, -even if they would otherwise be valid command-line options. +An argument following this token will be treated as pattern, +even if it would otherwise be a valid command-line option. .Pp -If encountered after the first non-option argument, -or after a previous instance of +If encountered after a previous instance of .Li -- it is treated as a pattern. .It Ar pattern |
