fix: help flag

This commit is contained in:
László Görög committed 2022-02-14 11:04:09 +01:00
1 parent 2de86e7013
commit bc6130af4d
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
# Log Management # 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:failed [--all|<app>] # Shows the last failed deploy logs
logs:report [<app>] [<flag>] # Displays a logs report for one or more apps 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 logs:set [--global|<app>] <key> <value> # Set or clear a logs property for an app
+2 -2
View File
@@ -22,7 +22,7 @@ Manage log integration for an app
Additional commands:` Additional commands:`
helpContent = ` 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:failed [--all|<app>], Shows the last failed deploy logs
logs:report [<app>] [<flag>], Displays a logs report for one or more apps 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 logs:set [--global|<app>] <key> <value>, Set or clear a logs property for an app
@@ -40,7 +40,7 @@ func main() {
switch cmd { switch cmd {
case "logs": case "logs":
args := flag.NewFlagSet("logs", flag.ExitOnError) 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") num := args.Int64P("num", "n", 100, "the number of lines to display")
ps := args.StringP("ps", "p", "", "only display logs from the given process") ps := args.StringP("ps", "p", "", "only display logs from the given process")
tail := args.BoolP("tail", "t", false, "continually stream logs") tail := args.BoolP("tail", "t", false, "continually stream logs")