Skip to content

Commit e729c73

Browse files
committed
added simple readme
1 parent dc95c57 commit e729c73

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.txt

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

main.go

+4
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ func main() {
8181
printVersion := flag.Bool("version", false, "print the version and quit")
8282
libraryPath := flag.String("lib", defaultLibraryPath, "the path to your music library")
8383

84+
flag.Usage = func() {
85+
fmt.Fprintf(os.Stderr, "Usage: %s [options] [album1 album2 ... albumN]\n\nParameters:\n", os.Args[0])
86+
flag.PrintDefaults()
87+
}
8488
flag.Parse()
8589

8690
if *printVersion {

0 commit comments

Comments
 (0)