Skip to content

Commit a2680ca

Browse files
committed
docs: usage flags description to lower case
1 parent a6835de commit a2680ca

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

cmd/cname.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ func Cname(ctx context.Context) *cli.Command {
8282
Name: "interval",
8383
Value: 300,
8484
EnvVars: []string{"INTERVAL"},
85-
Usage: "Interval of publishing CNAME records in seconds. How often to send records to other machines.",
85+
Usage: "interval of publishing CNAME records in seconds. How often to send records to other machines.",
8686
},
8787
&cli.StringFlag{
8888
Name: "fqdn",
8989
EnvVars: []string{"FQDN"},
90-
Usage: "Where to redirect. If empty, the Avahi FQDN (current machine) will be used",
91-
DefaultText: "hostname.local.",
90+
Usage: "where to redirect. If empty, the Avahi FQDN (current machine) will be used",
91+
DefaultText: "<hostname>.local.",
9292
},
9393
},
9494
Action: func(cCtx *cli.Context) error {

cmd/subdomain.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ func Subdomain(ctx context.Context) *cli.Command {
152152
&cli.StringFlag{
153153
Name: "fqdn",
154154
EnvVars: []string{"FQDN"},
155-
Usage: "FQDN which will be used for CNAME. If empty, will be used current FQDN",
156-
DefaultText: "hostname.local.",
155+
Usage: "FQDN which will be used for CNAME. If empty, will be used current FQDN from Avahi",
156+
DefaultText: "<hostname>.local.",
157157
},
158158
},
159159
Action: func(cCtx *cli.Context) error {

main.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ func main() {
4040
fmt.Printf(" > %+v\n", err)
4141
os.Exit(1)
4242
}
43+
44+
// To avoid graceful shutdown timeout
45+
os.Exit(0)
4346
}
4447

4548
// run starts and configures the CLI application
@@ -70,7 +73,7 @@ Need help? Visit https://github.com/grishy/go-avahi-cname`,
7073
&cli.BoolFlag{
7174
Name: "debug",
7275
Aliases: []string{"d"},
73-
Usage: "Enable debug logging",
76+
Usage: "enable debug logging",
7477
EnvVars: []string{"DEBUG"},
7578
Value: false,
7679
},

0 commit comments

Comments
 (0)