Amended man page and usage details synopsis

This commit is contained in:
asdf 2019-12-19 14:57:40 +11:00
parent 4182619a78
commit 4bb0c84c56
2 changed files with 6 additions and 10 deletions

View File

@ -4,9 +4,7 @@
.SH SYNOPSIS
.nf
.fam C
\fBbombadillo\fP [\fIurl\fP]
\fBbombadillo\fP [\fBOPTION\fP]
\fBbombadillo\fP [\fBOPTION\fP] [\fIurl\fP]
\fBbombadillo\fP [\fIoptions\fP] [\fIurl\fP]
.fam T
.fi
.SH DESCRIPTION
@ -17,11 +15,11 @@
.TP
.B
\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
.B
\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
.B
\fB-v\fP

View File

@ -166,12 +166,10 @@ func handleSignals(c <-chan os.Signal) {
func printHelp() {
art := `Bombadillo - a non-web browser
Syntax: bombadillo [url]
bombadillo [options...]
bombadillo -t [url]
Syntax: bombadillo [options] [url]
Examples: bombadillo gopher://bombadillo.colorfield.space
bombadillo -t
bombadillo -t
bombadillo -v
Options:
@ -182,7 +180,7 @@ Options:
func main() {
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.Parse()
if *getVersion {