Improve README and --help

This commit is contained in:
Nemo 2021-06-28 14:20:10 +05:30
parent cbaa488962
commit f00efc7806
2 changed files with 11 additions and 11 deletions

View File

@ -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].
Generates Cue sheet from Youtube URL
Usage
$ youtube-cue --audio-file <youtube_url> <output.cue>
$ youtube-cue [--audio-file audio.m4a] <youtube_url> <output.cue>
Options
--help, Show help
--version, Show version
--audio-file, Input Audio File
--audio-file, Input Audio File (optional)
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
$ youtube-cue "https://youtu.be/THzUassmQwE" folklore.cue
folklore.cue saved
## Personal Usage

View File

@ -11,15 +11,17 @@ let argv = minimist(process.argv.slice(2), {
if (argv._.length <2 || argv.help ){
console.log(`Usage
$ youtube-cue --audio-file <youtube_url> <output.cue>
$ youtube-cue [--audio-file audio.m4a] <youtube_url> <output.cue>
Options
--help, Show help
--audio-file, Input Audio File
--audio-file, Input Audio File (optional)
Examples
$ youtube-cue "https://www.youtube.com/watch?v=THzUassmQwE" output.cue
output.cue saved`)
$ youtube-cue --audio-file audio.m4a "https://www.youtube.com/watch?v=THzUassmQwE" output.cue
output.cue saved
$ youtube-cue "https://youtu.be/THzUassmQwE" folklore.cue
folklore.cue saved`)
} else {
let url = argv._[0]
let output_file = argv._[1]