forked from sloum/bombadillo
Amended man page and usage details synopsis
This commit is contained in:
parent
4182619a78
commit
4bb0c84c56
|
@ -4,9 +4,7 @@
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.fam C
|
.fam C
|
||||||
\fBbombadillo\fP [\fIurl\fP]
|
\fBbombadillo\fP [\fIoptions\fP] [\fIurl\fP]
|
||||||
\fBbombadillo\fP [\fBOPTION\fP]
|
|
||||||
\fBbombadillo\fP [\fBOPTION\fP] [\fIurl\fP]
|
|
||||||
.fam T
|
.fam T
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
@ -17,11 +15,11 @@
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
\fB-h\fP
|
\fB-h\fP
|
||||||
Usage help. Displays all command line options with a short description and exits.
|
Display usage help and exit. Provides a list of all command line options with a short description and exits.
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
\fB-t\fP
|
\fB-t\fP
|
||||||
Set the window title to Bomabdillo and run Bombadillo.
|
Set the window title to 'Bombadillo'. Can be used in a GUI environment, however not all terminals support this feature.
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
\fB-v\fP
|
\fB-v\fP
|
||||||
|
|
8
main.go
8
main.go
|
@ -166,12 +166,10 @@ func handleSignals(c <-chan os.Signal) {
|
||||||
func printHelp() {
|
func printHelp() {
|
||||||
art := `Bombadillo - a non-web browser
|
art := `Bombadillo - a non-web browser
|
||||||
|
|
||||||
Syntax: bombadillo [url]
|
Syntax: bombadillo [options] [url]
|
||||||
bombadillo [options...]
|
|
||||||
bombadillo -t [url]
|
|
||||||
|
|
||||||
Examples: bombadillo gopher://bombadillo.colorfield.space
|
Examples: bombadillo gopher://bombadillo.colorfield.space
|
||||||
bombadillo -t
|
bombadillo -t
|
||||||
bombadillo -v
|
bombadillo -v
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
@ -182,7 +180,7 @@ Options:
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
getVersion := flag.Bool("v", false, "Display version information and exit")
|
getVersion := flag.Bool("v", false, "Display version information and exit")
|
||||||
addTitleToXWindow := flag.Bool("t", false, "Change the window title to Bomabdillo while running")
|
addTitleToXWindow := flag.Bool("t", false, "Set the window title to 'Bombadillo'. Can be used in a GUI environment, however not all terminals support this feature.")
|
||||||
flag.Usage = printHelp
|
flag.Usage = printHelp
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
if *getVersion {
|
if *getVersion {
|
||||||
|
|
Loading…
Reference in New Issue