Module: Xmfun::Util::Helper

Included in:
CLI
Defined in:
lib/xmfun/util/helper.rb

Instance Method Summary collapse

Instance Method Details

#download_helpObject



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/xmfun/util/helper.rb', line 27

def download_help
  <<-EOS
Usage:
  xmfun download URL
  xmfun download URL -d DESINATION_FOLDER

Example:
  xmfun download http://www.xiami.com/song/3378080
  xmfun download http://www.xiami.com/song/3378080 -d pink
  EOS
end

#main_helpObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/xmfun/util/helper.rb', line 6

def main_help
  <<-EOS
Usage: xmfun <command> [<args>]

  -v, --version       Print the version
  -h, --help          Print this help

Common commands:
  download            Download the mp3 files given an arg of url
  update              Update xmfun to the newest version
  version             Print the version
  help                Print this help

Example:
  xmfun download http://www.xiami.com/song/3378080

More info:
  xmfun <command> -h
  EOS
end