Skip to content

Commit

Permalink
fix short flags in some commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarchie committed Nov 16, 2020
1 parent f45346b commit 8fbc0a4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ can be found in [Pivotal Documentation](docs.pivotal.io/platform-automation).
This ensures that commands are not kept in `bash` history.
The environment variable `OM_PASSWORD` will overwrite the password value in `env.yml`.

## 7.0.1
### Bug Fixes
- Some of the `-c` short flags were conflicting with short values.

## 7.0.0
### Breaking Changes
- Because of code changes in `om`, the long command line flags no longer support single dash assignment.
Expand Down
8 changes: 6 additions & 2 deletions cmd/loadConfigFile.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ func loadConfigFile(args []string, envFunc func() []string) ([]string, error) {
}

for _, cmdConfigBypassList := range []string{
"interpolate",
"apply-changes",
"bosh-env",
"configure-director",
"configure-opsman",
"configure-product",
"configure-director",
"credentials",
"interpolate",
"stage-product",
"staged-config",
"vm-lifecycle",
} {
if cmdConfigBypassList == args[0] {
Expand Down
2 changes: 1 addition & 1 deletion commands/disable_product_verfiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type DisableProductVerifiers struct {
presenter presenters.FormattedPresenter
logger logger
Options struct {
ProductName string `long:"product-name" short:"c" required:"true" description:"the name of the product"`
ProductName string `long:"product-name" short:"n" required:"true" description:"the name of the product"`
VerifierTypes []string `long:"type" short:"t" description:"verifier types to disable" required:"true"`
}
}
Expand Down

0 comments on commit 8fbc0a4

Please sign in to comment.