You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Fprintln(os.Stderr, "puttar usage: gomote puttar [put-opts] <buildlet-name> [tar.gz file or '-' for stdin]")
101
+
fs.PrintDefaults()
102
+
os.Exit(1)
103
+
}
104
+
varrevstring
105
+
fs.StringVar(&rev, "gorev", "", "If non-empty, git hash to download from gerrit and put to the buildlet. e.g. 886b02d705ff for Go 1.4.1. This just maps to the --URL flag, so the two options are mutually exclusive.")
106
+
vardirstring
107
+
fs.StringVar(&dir, "dir", "", "relative directory from buildlet's work dir to extra tarball into")
108
+
vartarURLstring
109
+
fs.StringVar(&tarURL, "url", "", "URL of tarball, instead of provided file.")
110
+
111
+
fs.Parse(args)
112
+
iffs.NArg() <1||fs.NArg() >2 {
113
+
fs.Usage()
114
+
}
115
+
ifrev!=""&&tarURL!="" {
116
+
fmt.Fprintln(os.Stderr, "--gorev and --url are mutually exclusive")
0 commit comments