File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ Usage: ./ymdl [options] [album1 album2 ... albumN]
2
+
3
+ Parameters:
4
+ -album
5
+ download a complete album from youtube (default true)
6
+ -lib string
7
+ the path to your music library (default "$HOME/Music")
8
+ -track
9
+ download a single track from youtube
10
+ -version
11
+ print the version and quit
Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ func main() {
81
81
printVersion := flag .Bool ("version" , false , "print the version and quit" )
82
82
libraryPath := flag .String ("lib" , defaultLibraryPath , "the path to your music library" )
83
83
84
+ flag .Usage = func () {
85
+ fmt .Fprintf (os .Stderr , "Usage: %s [options] [album1 album2 ... albumN]\n \n Parameters:\n " , os .Args [0 ])
86
+ flag .PrintDefaults ()
87
+ }
84
88
flag .Parse ()
85
89
86
90
if * printVersion {
You can’t perform that action at this time.
0 commit comments