devcam: add -nobuild flag to put.

But really this should be a global option, and/or environment controlled,
like dev/demo.sh set up previously.

Change-Id: Iabf0c02e4a44ed574088e2938f3b4f53cabf3a43
This commit is contained in:
Brad Fitzpatrick 2013-09-10 20:02:15 -07:00
parent 6f75f451c8
commit 6fca50a9c7
1 changed files with 6 additions and 4 deletions

View File

@ -34,10 +34,11 @@ import (
type putCmd struct {
// start of flag vars
altkey bool
path string
port string
tls bool
altkey bool
path string
port string
tls bool
noBuild bool
// end of flag vars
verbose bool // set by CAMLI_QUIET
@ -51,6 +52,7 @@ func init() {
flags.BoolVar(&cmd.tls, "tls", false, "Use TLS.")
flags.StringVar(&cmd.path, "path", "/", "Optional URL prefix path.")
flags.StringVar(&cmd.port, "port", "3179", "Port camlistore is listening on.")
flags.BoolVar(&cmd.noBuild, "nobuild", false, "Do not rebuild anything.")
return cmd
})
}