Skip to content

Commit 6758bc5

Browse files
committed
delete custom help command
1 parent 37849c3 commit 6758bc5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/config/flags.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ import (
66
"strings"
77
flag "github.com/spf13/pflag"
88
)
9-
// Custom usage message to add short and long flags together
10-
/* const usage = `Usage of explo:
11-
-c, --config Path of the configuration file
12-
-p, --playlist Playlist where to get tracks. Supported: weekly-exploration, weekly-jams, daily-jams
13-
--download-mode Download mode: 'normal' (download only when track is not found locally), 'skip' (skip downloading, only use tracks already found locally), 'force' (always download, don't check for local tracks)
14-
--filter-local Filter out locally found tracks from playlist
15-
-h, --help prints help information
16-
` */
179

1810
var (
1911
validPlaylists = []string{"weekly-exploration", "weekly-jams", "daily-jams"}
@@ -31,7 +23,6 @@ func (cfg *Config) GetFlags() error {
3123
flag.StringVarP(&downloadMode, "download-mode", "d", "normal", "Download mode: 'normal' (download only when track is not found locally), 'skip' (skip downloading, only use tracks already found locally), 'force' (always download, don't check for local tracks)")
3224
flag.BoolVar(&filterLocal, "filter-local", false, "Filter out locally found tracks from playlist")
3325

34-
//flag.Usage = func() { fmt.Print(usage) }
3526
flag.Parse()
3627

3728
// Validation for playlist

0 commit comments

Comments
 (0)