Changeset 74 in code for trunk


Ignore:
Timestamp:
Jan 30, 2018, 6:46:11 PM (7 years ago)
Author:
asciimoo
Message:

[enh] v0.1.0

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/morty.go

    r72 r74  
    3333        STATE_IN_NOSCRIPT int = 2
    3434)
     35
     36const VERSION = "v0.1.0"
    3537
    3638var CLIENT *fasthttp.Client = &fasthttp.Client{
     
    970972        key := flag.String("key", "", "HMAC url validation key (hexadecimal encoded) - leave blank to disable")
    971973        ipv6 := flag.Bool("ipv6", false, "Allow IPv6 HTTP requests")
     974        version := flag.Bool("version", false, "Show version")
    972975        requestTimeout := flag.Uint("timeout", 2, "Request timeout")
    973976        flag.Parse()
    974977
     978        if *version {
     979                fmt.Println(VERSION)
     980                return
     981        }
     982
    975983        if *ipv6 {
    976984                CLIENT.Dial = fasthttp.DialDualStack
Note: See TracChangeset for help on using the changeset viewer.