Page MenuHomeMusing Studio

options.go
No OneTemporary

options.go

package main
import (
"gopkg.in/urfave/cli.v1"
)
func userAgent(c *cli.Context) string {
ua := c.String("user-agent")
if ua == "" {
return defaultUserAgent
}
return ua + " (" + defaultUserAgent + ")"
}
func isTor(c *cli.Context) bool {
return c.Bool("tor") || c.Bool("t")
}
func collection(c *cli.Context) string {
if coll := c.String("c"); coll != "" {
return coll
}
if coll := c.String("b"); coll != "" {
return coll
}
return ""
}

File Metadata

Mime Type
text/plain
Expires
Tue, Feb 10, 5:24 PM (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3623134

Event Timeline