From bc6130af4d33a4a4a56a02b9795fb004f5c746c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20G=C3=B6r=C3=B6g?= Date: Mon, 14 Feb 2022 11:00:20 +0100 Subject: [PATCH] fix: help flag --- docs/deployment/logs.md | 2 +- plugins/logs/src/commands/commands.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/deployment/logs.md b/docs/deployment/logs.md index 887ecf0ba..1271ddde6 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 42d348e07..bec7b2061 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")