Skip to content

Commit

Permalink
Duplicate AppName at plugin usage
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Apr 3, 2024
1 parent d3d3560 commit b999a37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/components/conversionlayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func ConvertApp(jfrogApp App) (*cli.App, error) {
app.Name = jfrogApp.Name
app.Description = jfrogApp.Description
app.Version = jfrogApp.Version
app.Commands, err = ConvertAppCommands(jfrogApp, jfrogApp.Name)
app.Commands, err = ConvertAppCommands(jfrogApp)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -127,7 +127,7 @@ func createCommandUsages(cmd Command, convertedStringFlags map[string]StringFlag
}

func getCmdUsageString(cmd Command, namespaces ...string) string {
return coreutils.GetCliExecutableName() + " " + strings.Join(append(removeEmptyValues(namespaces), cmd.Name), " ")
return strings.Join(append(removeEmptyValues(namespaces), cmd.Name), " ")
}

// Generated usages are based on the command's flags and arguments:
Expand Down

0 comments on commit b999a37

Please sign in to comment.