Improve README and --help
This commit is contained in:
parent
cbaa488962
commit
f00efc7806
12
README.md
12
README.md
|
@ -31,19 +31,17 @@ For all of the above, there are better tools available, such as [youtube-dl](htt
|
||||||
|
|
||||||
You need to pass 2 parameters, a Youtube URL and a output CUE filename. YouTube short URLs (`youtu.be`) are accepted. You can additionally pass a `audio-file` argument which is used for the [`FILE` specified in the CUE file][cuefile].
|
You need to pass 2 parameters, a Youtube URL and a output CUE filename. YouTube short URLs (`youtu.be`) are accepted. You can additionally pass a `audio-file` argument which is used for the [`FILE` specified in the CUE file][cuefile].
|
||||||
|
|
||||||
Generates Cue sheet from Youtube URL
|
$ youtube-cue [--audio-file audio.m4a] <youtube_url> <output.cue>
|
||||||
|
|
||||||
Usage
|
|
||||||
$ youtube-cue --audio-file <youtube_url> <output.cue>
|
|
||||||
|
|
||||||
Options
|
Options
|
||||||
--help, Show help
|
--help, Show help
|
||||||
--version, Show version
|
--audio-file, Input Audio File (optional)
|
||||||
--audio-file, Input Audio File
|
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
$ youtube-cue "https://www.youtube.com/watch?v=THzUassmQwE" output.cue
|
$ youtube-cue --audio-file audio.m4a "https://www.youtube.com/watch?v=THzUassmQwE" output.cue
|
||||||
output.cue saved
|
output.cue saved
|
||||||
|
$ youtube-cue "https://youtu.be/THzUassmQwE" folklore.cue
|
||||||
|
folklore.cue saved
|
||||||
|
|
||||||
## Personal Usage
|
## Personal Usage
|
||||||
|
|
||||||
|
|
10
index.js
10
index.js
|
@ -11,15 +11,17 @@ let argv = minimist(process.argv.slice(2), {
|
||||||
|
|
||||||
if (argv._.length <2 || argv.help ){
|
if (argv._.length <2 || argv.help ){
|
||||||
console.log(`Usage
|
console.log(`Usage
|
||||||
$ youtube-cue --audio-file <youtube_url> <output.cue>
|
$ youtube-cue [--audio-file audio.m4a] <youtube_url> <output.cue>
|
||||||
|
|
||||||
Options
|
Options
|
||||||
--help, Show help
|
--help, Show help
|
||||||
--audio-file, Input Audio File
|
--audio-file, Input Audio File (optional)
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
$ youtube-cue "https://www.youtube.com/watch?v=THzUassmQwE" output.cue
|
$ youtube-cue --audio-file audio.m4a "https://www.youtube.com/watch?v=THzUassmQwE" output.cue
|
||||||
output.cue saved`)
|
output.cue saved
|
||||||
|
$ youtube-cue "https://youtu.be/THzUassmQwE" folklore.cue
|
||||||
|
folklore.cue saved`)
|
||||||
} else {
|
} else {
|
||||||
let url = argv._[0]
|
let url = argv._[0]
|
||||||
let output_file = argv._[1]
|
let output_file = argv._[1]
|
||||||
|
|
Loading…
Reference in New Issue