docs: update usage message (#2662)
This commit is contained in:
1 parent
34ecd96967
commit
7351444397
4 files changed
+11
-11
No files matched your search
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in new issue
Block a user