Skip to content

Commit

Permalink
Merge pull request #7329 from mjs/no-switch-tweak
Browse files Browse the repository at this point in the history
cmd/juju: Remove -S short option for --no-switch

## Description of change

Following tech board discussions, it was decided that this functionality wasn't going to be used enough to warrant the short option.

## QA steps

`juju bootstrap -S` and `juju add-model -S` no longer work. `--no-switch` still works.

## Documentation changes

Not required as there's not been an official release that supported `-S`.

## Bug reference

N.A.
  • Loading branch information
jujubot committed May 10, 2017
2 parents 924a383 + d32a3f3 commit 3517ae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cmd/juju/commands/bootstrap.go
Expand Up @@ -184,8 +184,7 @@ func (c *bootstrapCommand) SetFlags(f *gnuflag.FlagSet) {
f.BoolVar(&c.showClouds, "clouds", false, "Print the available clouds which can be used to bootstrap a Juju environment")
f.StringVar(&c.showRegionsForCloud, "regions", "", "Print the available regions for the specified cloud")
f.BoolVar(&c.noGUI, "no-gui", false, "Do not install the Juju GUI in the controller when bootstrapping")
f.BoolVar(&c.noSwitch, "S", false, "Do not switch to the newly created controller")
f.BoolVar(&c.noSwitch, "no-switch", false, "")
f.BoolVar(&c.noSwitch, "no-switch", false, "Do not switch to the newly created controller")
}

func (c *bootstrapCommand) Init(args []string) (err error) {
Expand Down
3 changes: 1 addition & 2 deletions cmd/juju/controller/addmodel.go
Expand Up @@ -116,8 +116,7 @@ func (c *addModelCommand) SetFlags(f *gnuflag.FlagSet) {
f.StringVar(&c.Owner, "owner", "", "The owner of the new model if not the current user")
f.StringVar(&c.CredentialName, "credential", "", "Credential used to add the model")
f.Var(&c.Config, "config", "Path to YAML model configuration file or individual options (--config config.yaml [--config key=value ...])")
f.BoolVar(&c.noSwitch, "S", false, "Do not switch to the newly created controller")
f.BoolVar(&c.noSwitch, "no-switch", false, "")
f.BoolVar(&c.noSwitch, "no-switch", false, "Do not switch to the newly created controller")
}

func (c *addModelCommand) Init(args []string) error {
Expand Down

0 comments on commit 3517ae0

Please sign in to comment.