🏡 index : github.com/captn3m0/youtube-cue.git

author Nemo <commits@captnemo.in> 2021-06-28 14:20:10.0 +05:30:00
committer Nemo <commits@captnemo.in> 2021-06-28 14:20:10.0 +05:30:00
commit
f00efc7806cd1e228676e2d4e121ab29f25df551 [patch]
tree
4ff6b8f0e2a3a1fc14f0ed5d4dae346b95b6edaa
parent
cbaa4889625b1acb6e754e0ded8f4d9e3d0f1709
download
f00efc7806cd1e228676e2d4e121ab29f25df551.tar.gz

Improve README and --help



Diff

 README.md | 12 +++++++-----
 index.js  | 10 ++++++++--
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/README.md b/README.md
index d6e6ff5..26d6578 100644
--- a/README.md
+++ a/README.md
@@ -31,19 +31,17 @@

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

      --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

diff --git a/index.js b/index.js
index 45fc4ca..ab932f5 100755
--- a/index.js
+++ a/index.js
@@ -11,15 +11,17 @@

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]