Skip to content

Commit

Permalink
with-addons param in plural. Use addonName function
Browse files Browse the repository at this point in the history
  • Loading branch information
curzolapierre committed Jun 23, 2020
1 parent 3d60cda commit 710a261
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/log_drains.go
Expand Up @@ -14,18 +14,18 @@ var (
Category: "Log drains",
Flags: []cli.Flag{appFlag,
addonFlag,
cli.BoolFlag{Name: "with-addon", Usage: "also list the log drains of all addons"},
cli.BoolFlag{Name: "with-addons", Usage: "also list the log drains of all addons"},
},
Usage: "List the log drains of an application",
Description: `List all the log drains of an application:
Use the parameter: "--addon <addon_uuid>" to list log drains of a specific addon
Use the parameter: "--with-addon" to list log drains of all addons connected to the application
Use the parameter: "--with-addons" to list log drains of all addons connected to the application
Examples:
$ scalingo --app my-app log-drains
$ scalingo --app my-app log-drains --addon ad-9be0fc04-bee6-4981-a403-a9ddbee7bd1f
$ scalingo --app my-app log-drains --with-addon
$ scalingo --app my-app log-drains --with-addons
# See also commands 'log-drains-add', 'log-drains-remove'`,

Expand All @@ -44,7 +44,7 @@ var (
}

var err error
if addonID != "" || c.String("with-addon") == "true" {
if addonID != "" || c.Bool("with-addons") {
err = log_drains.ListAddon(currentApp, addonID)
} else {
err = log_drains.List(currentApp)
Expand Down

0 comments on commit 710a261

Please sign in to comment.