mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Merge pull request #5035 from nerg4l/fix/log-help-flag
Fix help flag for logs command
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Log Management
|
||||
|
||||
```
|
||||
logs <app> [-h] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] # Display recent log output
|
||||
logs <app> [-h|--help] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] # Display recent log output
|
||||
logs:failed [--all|<app>] # Shows the last failed deploy logs
|
||||
logs:report [<app>] [<flag>] # Displays a logs report for one or more apps
|
||||
logs:set [--global|<app>] <key> <value> # Set or clear a logs property for an app
|
||||
|
||||
@@ -22,7 +22,7 @@ Manage log integration for an app
|
||||
Additional commands:`
|
||||
|
||||
helpContent = `
|
||||
logs [-h] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] <app>, Display recent log output
|
||||
logs [-h|--help] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] <app>, Display recent log output
|
||||
logs:failed [--all|<app>], Shows the last failed deploy logs
|
||||
logs:report [<app>] [<flag>], Displays a logs report for one or more apps
|
||||
logs:set [--global|<app>] <key> <value>, Set or clear a logs property for an app
|
||||
@@ -40,7 +40,7 @@ func main() {
|
||||
switch cmd {
|
||||
case "logs":
|
||||
args := flag.NewFlagSet("logs", flag.ExitOnError)
|
||||
help := args.Bool("h", false, "-h: print help for the command")
|
||||
help := args.BoolP("help", "h", false, "print help for the command")
|
||||
num := args.Int64P("num", "n", 100, "the number of lines to display")
|
||||
ps := args.StringP("ps", "p", "", "only display logs from the given process")
|
||||
tail := args.BoolP("tail", "t", false, "continually stream logs")
|
||||
|
||||
Reference in New Issue
Block a user