Tweak help text
This commit is contained in:
parent
31c29ba427
commit
0ff252d918
26
main.go
26
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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user