add select-path to -help (#749)

This commit is contained in:
Christian Zangl authored and GitHub committed 2022-02-04 23:32:34 +03:00
1 parent a4842e19d4
commit 761aa23483
3 files changed
+14 -2

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ lf \- terminal file manager
.OP \-single
.OP \-version
.OP \-help
.RI [ directory ]
.RI [ select-path ]
.YS
.SH DESCRIPTION
END
+1 -1
View File
@@ -16,7 +16,7 @@ lf \- terminal file manager
.OP \-single
.OP \-version
.OP \-help
.RI [ directory ]
.RI [ select-path ]
.YS
.SH DESCRIPTION
lf is a terminal file manager.
+12
View File
@@ -185,6 +185,18 @@ func checkServer() {
}
func main() {
flag.Usage = func() {
f := flag.CommandLine.Output()
fmt.Fprintln(f, "lf - Terminal file manager")
fmt.Fprintln(f, "")
fmt.Fprintf(f, "Usage: %s [options] [select-path]\n\n", os.Args[0])
fmt.Fprintln(f, " select-path")
fmt.Fprintln(f, " set the initial file selection to the given argument")
fmt.Fprintln(f, "")
fmt.Fprintln(f, "Options:")
flag.PrintDefaults()
}
showDoc := flag.Bool(
"doc",
false,