2014-04-21 18:30:55 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/jessevdk/go-flags"
|
|
|
|
)
|
|
|
|
|
|
|
|
type GlobalOptions struct {
|
2015-05-21 23:33:45 +02:00
|
|
|
TLSCaCert string `long:"tlscacert" value-name:"~/.docker/ca.pem" description:"Trust certs signed only by this CA"`
|
|
|
|
TLSCert string `long:"tlscert" value-name:"~/.docker/cert.pem" description:"Path to TLS certificate file"`
|
|
|
|
TLSKey string `long:"tlskey" value-name:"~/.docker/key.pem" description:"Path to TLS key file"`
|
|
|
|
TLSVerify bool `long:"tlsverify" description:"Use TLS and verify the remote"`
|
2014-04-21 18:30:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var globalOptions GlobalOptions
|
|
|
|
var parser = flags.NewParser(&globalOptions, flags.Default)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
if _, err := parser.Parse(); err != nil {
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
}
|