Skip to content

Commit

Permalink
fix!: remove short commands (notaryproject#552)
Browse files Browse the repository at this point in the history
Fix commands short
* `-p` is used for password so shouldn't use it for plugin
* `-c` is not being used anywhere for `plugin-config`

Signed-off-by: Pritesh Bandi <[email protected]>
  • Loading branch information
priteshbandi authored Feb 16, 2023
1 parent 54b42cb commit 85247a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/notation/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func keyAddCommand(opts *keyAddOpts) *cobra.Command {
},
}
opts.LoggingFlagOpts.ApplyFlags(command.Flags())
command.Flags().StringVarP(&opts.plugin, "plugin", "p", "", "signing plugin name")
command.Flags().StringVar(&opts.plugin, "plugin", "", "signing plugin name")
command.MarkFlagRequired("plugin")

command.Flags().StringVar(&opts.id, "id", "", "key id (required if --plugin is set)")
Expand Down
4 changes: 2 additions & 2 deletions specs/commandline/key.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ Flags:
--default mark as default
-h, --help help for add
--id string key id (required if --plugin is set)
-p, --plugin string signing plugin name
-c, --plugin-config stringArray {key}={value} pairs that are passed as it is to a plugin, refer plugin's documentation to set appropriate values
--plugin string signing plugin name
--plugin-config stringArray {key}={value} pairs that are passed as it is to a plugin, refer plugin's documentation to set appropriate values
-v, --verbose verbose mode
```

Expand Down

0 comments on commit 85247a2

Please sign in to comment.