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

Commit

Permalink
Merge pull request #1102 from Starnop/disable-autogendoc
Browse files Browse the repository at this point in the history
bugfix: disable displaying auto generation tag in cli docs for supernode
  • Loading branch information
yeya24 authored Nov 30, 2019
2 parents f8ecf02 + 6307135 commit b1a405c
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 b1a405c

Please sign in to comment.