diff --git a/docs/deployment/logs.md b/docs/deployment/logs.md index 887ecf0ba38..1271ddde6b7 100644 --- a/docs/deployment/logs.md +++ b/docs/deployment/logs.md @@ -1,7 +1,7 @@ # Log Management ``` -logs [-h] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] # Display recent log output +logs [-h|--help] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] # Display recent log output logs:failed [--all|] # Shows the last failed deploy logs logs:report [] [] # Displays a logs report for one or more apps logs:set [--global|] # Set or clear a logs property for an app diff --git a/plugins/logs/src/commands/commands.go b/plugins/logs/src/commands/commands.go index 42d348e07ef..bec7b206128 100644 --- a/plugins/logs/src/commands/commands.go +++ b/plugins/logs/src/commands/commands.go @@ -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] , Display recent log output + logs [-h|--help] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] , Display recent log output logs:failed [--all|], Shows the last failed deploy logs logs:report [] [], Displays a logs report for one or more apps logs:set [--global|] , 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")