From 4bb0c84c5644fe848047e8c2a2e7c1b3254477e2 Mon Sep 17 00:00:00 2001 From: asdf Date: Thu, 19 Dec 2019 14:57:40 +1100 Subject: [PATCH] Amended man page and usage details synopsis --- bombadillo.1 | 8 +++----- main.go | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/bombadillo.1 b/bombadillo.1 index 9576233..a8b9e07 100644 --- a/bombadillo.1 +++ b/bombadillo.1 @@ -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 diff --git a/main.go b/main.go index 8ab5979..1362e78 100644 --- a/main.go +++ b/main.go @@ -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 {