Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
bugfix: disable displaying auto generation tag in cli docs for supernode
Browse files Browse the repository at this point in the history
Signed-off-by: Starnop <starnopg@gmail.com>
  • Loading branch information
starnop committed Nov 29, 2019
1 parent f8ecf02 commit 6307135
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cmd/supernode/app/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ It's the tracker and scheduler in the P2P network that choose appropriate downlo
It's also a CDN server that caches downloaded data from source to avoid downloading the same files from source repeatedly.`

var rootCmd = &cobra.Command{
Use: "supernode",
Short: "the central control server of Dragonfly used for scheduling and cdn cache",
Long: supernodeDescription,
Args: cobra.NoArgs,
SilenceUsage: true,
Use: "supernode",
Short: "the central control server of Dragonfly used for scheduling and cdn cache",
Long: supernodeDescription,
Args: cobra.NoArgs,
DisableAutoGenTag: true, // disable displaying auto generation tag in cli docs
SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) error {
// load config file.
if err := readConfigFile(supernodeViper, cmd); err != nil {
Expand Down

0 comments on commit 6307135

Please sign in to comment.