From 6bec5c704bf459c2abdfd4297203a501175003ab Mon Sep 17 00:00:00 2001 From: Ferran Borreguero Date: Mon, 18 Oct 2021 14:33:29 +0200 Subject: [PATCH] Add cli info --- command/debug.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/command/debug.go b/command/debug.go index 0168bb74a7..6914b83864 100644 --- a/command/debug.go +++ b/command/debug.go @@ -1,5 +1,7 @@ package main +// Based on https://github.com/hashicorp/nomad/blob/main/command/operator_debug.go + import ( "archive/tar" "compress/gzip" @@ -30,7 +32,9 @@ type DebugCommand struct { func (d *DebugCommand) Help() string { return `Usage: bor debug - Debug` + Build an archive containing Bor pprof traces + + ` + d.Flags().Help() } func (d *DebugCommand) Flags() *flagset.Flagset { @@ -52,7 +56,7 @@ func (d *DebugCommand) Flags() *flagset.Flagset { // Synopsis implements the cli.Command interface func (d *DebugCommand) Synopsis() string { - return "Debug" + return "Build an archive containing Bor pprof traces" } // Run implements the cli.Command interface