Skip to content

Commit 0cb0fed

Browse files
committed
fix(cli): correct registered integration add usage string to --opt
The cobra Use string advertised a --options flag that does not exist; the actual flag is --opt (as already shown in the command Example). This corrects the usage string so help output and generated CLI reference docs reflect the real flag. Signed-off-by: Tomasz Knura <tomasz.knura@itsilesia.com>
1 parent 3ca7ba5 commit 0cb0fed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎app/cli/cmd/registered_integration_add.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func newRegisteredIntegrationAddCmd() *cobra.Command {
3333
var integrationDescription, integrationName string
3434

3535
cmd := &cobra.Command{
36-
Use: "add INTEGRATION_ID --name [registration-name] --options key=value,key=value",
36+
Use: "add INTEGRATION_ID --name [registration-name] --opt key=value",
3737
Short: "Register a new instance of an integration",
3838
Example: ` chainloop integration registered add dependencytrack --name send-to-prod --opt instance=https://deptrack.company.com,apiKey=1234567890 --opt username=chainloop`,
3939
Args: cobra.ExactArgs(1),

0 commit comments

Comments
 (0)