add select-path to -help (#749)
This commit is contained in:
parent
a4842e19d4
commit
761aa23483
@ -35,7 +35,7 @@ lf \- terminal file manager
|
||||
.OP \-single
|
||||
.OP \-version
|
||||
.OP \-help
|
||||
.RI [ directory ]
|
||||
.RI [ select-path ]
|
||||
.YS
|
||||
.SH DESCRIPTION
|
||||
END
|
||||
|
2
lf.1
2
lf.1
@ -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
main.go
12
main.go
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user