Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

bugfix: disable displaying auto generation tag in cli docs for supernode #1102

Merged
merged 1 commit into from
Nov 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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