Skip to content

Commit 6dfcb29

Browse files
docs: update usage message
1 parent 34ecd96 commit 6dfcb29

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

doc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lf - terminal file manager
2020
[**-server**]
2121
[**-single**]
2222
[**-version**]
23-
[*cd-or-select-path*]
23+
[*path*]
2424

2525
# DESCRIPTION
2626

@@ -36,7 +36,7 @@ A man page with the same content is also available in the repository at https://
3636

3737
## POSITIONAL ARGUMENTS
3838

39-
**cd-or-select-path**
39+
**path**
4040

4141
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.
4242

doc.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SYNOPSIS
77
lf [-command command] [-config path] [-cpuprofile path] [-doc] [-help]
88
[-last-dir-path path] [-log path] [-memprofile path] [-print-last-dir]
99
[-print-selection] [-remote command] [-selection-path path] [-server]
10-
[-single] [-version] [cd-or-select-path]
10+
[-single] [-version] [path]
1111

1212
DESCRIPTION
1313

@@ -26,7 +26,7 @@ OPTIONS
2626

2727
POSITIONAL ARGUMENTS
2828

29-
cd-or-select-path
29+
path
3030

3131
Set the starting location. If path is a directory, start in there.
3232
If it's a file, start in the file's parent directory and select the

lf.1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" Automatically generated by Pandoc 3.7.0.2
22
.\"
3-
.TH "LF" "1" "2026\-07\-31" "r42" "DOCUMENTATION"
3+
.TH "LF" "1" "2026\-08\-11" "r43" "DOCUMENTATION"
44
.SH NAME
55
lf \- terminal file manager
66
.SH SYNOPSIS
@@ -11,8 +11,7 @@ lf \- terminal file manager
1111
\f[I]path\f[R]] [\f[B]\-print\-last\-dir\f[R]]
1212
[\f[B]\-print\-selection\f[R]] [\f[B]\-remote\f[R] \f[I]command\f[R]]
1313
[\f[B]\-selection\-path\f[R] \f[I]path\f[R]] [\f[B]\-server\f[R]]
14-
[\f[B]\-single\f[R]] [\f[B]\-version\f[R]]
15-
[\f[I]cd\-or\-select\-path\f[R]]
14+
[\f[B]\-single\f[R]] [\f[B]\-version\f[R]] [\f[I]path\f[R]]
1615
.SH DESCRIPTION
1716
lf is a terminal file manager.
1817
.PP
@@ -33,7 +32,7 @@ A man page with the same content is also available in the repository at
3332
.SH OPTIONS
3433
.SS POSITIONAL ARGUMENTS
3534
.TP
36-
\f[B]cd\-or\-select\-path\f[R]
35+
\f[B]path\f[R]
3736
Set the starting location.
3837
If \f[I]path\f[R] is a directory, start in there.
3938
If it\(aqs a file, start in the file\(aqs parent directory and select

main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,11 @@ func main() {
225225
f := flag.CommandLine.Output()
226226
fmt.Fprintf(f, `lf - Terminal file manager
227227
228-
Usage: %s [options] [cd-or-select-path]
228+
Usage: %s [options] [path]
229229
230-
cd-or-select-path
231-
set the initial dir or file selection to the given argument
230+
Arguments:
231+
path
232+
set the initial directory or select the given file
232233
233234
Options:
234235
`, os.Args[0])

0 commit comments

Comments
 (0)