From 0ff252d91891a8035ba0405dc139a58cbc2688bb Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Wed, 23 Nov 2016 01:14:19 -0800 Subject: [PATCH] Tweak help text --- main.go | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index fbc3062..20e9f26 100644 --- a/main.go +++ b/main.go @@ -36,10 +36,20 @@ func (f *typeFlag) String() string { func main() { app := cli.NewApp() + app.Name = "update-dns" - app.Usage = "update dnsimple with public ip address" - app.Version = "0.2.0" + app.Usage = "update dns using dnsimple with public ip address" + app.UsageText = "update-dns [options] host" + app.Version = "0.2.1" app.Action = action + app.HideHelp = true + + app.Authors = []cli.Author{ + cli.Author{ + Name: "Buddy Sandidge", + Email: "buddy@sandidge.lol", + }, + } app.Flags = []cli.Flag{ cli.GenericFlag{ @@ -54,18 +64,18 @@ func main() { Usage: "content to set manually, defaults to fetching ip address if not set", }, - cli.StringFlag{ - Name: "get-ipv6-url", - Value: "https://whatismyipv6.buddy.wtf/json", - Usage: "url to use to get public IPv6 address", - }, - cli.StringFlag{ Name: "get-ipv4-url", Value: "https://whatismyipv4.buddy.wtf/json", Usage: "url to use to get public IPv4 address", }, + cli.StringFlag{ + Name: "get-ipv6-url", + Value: "https://whatismyipv6.buddy.wtf/json", + Usage: "url to use to get public IPv6 address", + }, + cli.StringFlag{ EnvVar: "DNSIMPLE_TOKEN", Name: "dnsimple-token",