Index: cmd/juju/upgradejuju.go |
=== modified file 'cmd/juju/upgradejuju.go' |
--- cmd/juju/upgradejuju.go 2013-02-20 22:11:47 +0000 |
+++ cmd/juju/upgradejuju.go 2013-02-28 02:55:21 +0000 |
@@ -13,7 +13,7 @@ |
// UpgradeJujuCommand upgrades the agents in a juju installation. |
type UpgradeJujuCommand struct { |
- EnvName string |
+ EnvCommandBase |
UploadTools bool |
BumpVersion bool |
Version version.Number |
@@ -34,7 +34,7 @@ |
} |
func (c *UpgradeJujuCommand) SetFlags(f *gnuflag.FlagSet) { |
- addEnvironFlags(&c.EnvName, f) |
+ c.EnvCommandBase.SetFlags(f) |
f.BoolVar(&c.UploadTools, "upload-tools", false, "upload local version of tools") |
f.StringVar(&c.vers, "version", "", "version to upgrade to (defaults to highest available version with the current major version number)") |
f.BoolVar(&c.BumpVersion, "bump-version", false, "upload the tools with a higher build number if necessary, and use that version (overrides --version)") |