diff --git a/doc.md b/doc.md index aed366bb..e23c847a 100644 --- a/doc.md +++ b/doc.md @@ -20,7 +20,7 @@ lf - terminal file manager [**-server**] [**-single**] [**-version**] -[*cd-or-select-path*] +[*path*] # DESCRIPTION @@ -36,7 +36,7 @@ A man page with the same content is also available in the repository at https:// ## POSITIONAL ARGUMENTS -**cd-or-select-path** +**path** Set the starting location. If *path* is a directory, start in there. If it's a file, start in the file's parent directory and select the file. When no *path* is supplied, lf uses the current directory. Only accepts one argument. diff --git a/doc.txt b/doc.txt index 65b71afa..211b9548 100644 --- a/doc.txt +++ b/doc.txt @@ -7,7 +7,7 @@ SYNOPSIS lf [-command command] [-config path] [-cpuprofile path] [-doc] [-help] [-last-dir-path path] [-log path] [-memprofile path] [-print-last-dir] [-print-selection] [-remote command] [-selection-path path] [-server] -[-single] [-version] [cd-or-select-path] +[-single] [-version] [path] DESCRIPTION @@ -26,7 +26,7 @@ OPTIONS POSITIONAL ARGUMENTS -cd-or-select-path +path Set the starting location. If path is a directory, start in there. If it's a file, start in the file's parent directory and select the diff --git a/lf.1 b/lf.1 index e78be3fc..ec7db2b8 100644 --- a/lf.1 +++ b/lf.1 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 3.7.0.2 .\" -.TH "LF" "1" "2026\-07\-31" "r42" "DOCUMENTATION" +.TH "LF" "1" "2026\-08\-11" "r43" "DOCUMENTATION" .SH NAME lf \- terminal file manager .SH SYNOPSIS @@ -11,8 +11,7 @@ lf \- terminal file manager \f[I]path\f[R]] [\f[B]\-print\-last\-dir\f[R]] [\f[B]\-print\-selection\f[R]] [\f[B]\-remote\f[R] \f[I]command\f[R]] [\f[B]\-selection\-path\f[R] \f[I]path\f[R]] [\f[B]\-server\f[R]] -[\f[B]\-single\f[R]] [\f[B]\-version\f[R]] -[\f[I]cd\-or\-select\-path\f[R]] +[\f[B]\-single\f[R]] [\f[B]\-version\f[R]] [\f[I]path\f[R]] .SH DESCRIPTION lf is a terminal file manager. .PP @@ -33,7 +32,7 @@ A man page with the same content is also available in the repository at .SH OPTIONS .SS POSITIONAL ARGUMENTS .TP -\f[B]cd\-or\-select\-path\f[R] +\f[B]path\f[R] Set the starting location. If \f[I]path\f[R] is a directory, start in there. If it\(aqs a file, start in the file\(aqs parent directory and select diff --git a/main.go b/main.go index 7d988794..0f87213d 100644 --- a/main.go +++ b/main.go @@ -225,10 +225,11 @@ func main() { f := flag.CommandLine.Output() fmt.Fprintf(f, `lf - Terminal file manager -Usage: %s [options] [cd-or-select-path] +Usage: %s [options] [path] - cd-or-select-path - set the initial dir or file selection to the given argument +Arguments: + path + set the initial directory or select the given file Options: `, os.Args[0])