Method: Vnehm::ListCommand#initialize

Defined in:
lib/vnehm/commands/list_command.rb

#initializeListCommand

Returns a new instance of ListCommand.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/vnehm/commands/list_command.rb', line 11

def initialize
  super

  add_option(:to, 'to ПУТЬ',
             'Скачивать аудиозапись(и) в ПУТЬ')

  add_option(:pl, 'pl ПЛЕЙЛИСТ',
             "Добавлять аудиозапись(и) в плейлист iTunes'a c именем" \
                                                              ' ПЛЕЙЛИСТ')

  add_option(:limit, 'limit ЧИСЛО',
             'Показывать ЧИСЛО аудиозаписей на каждой страницe')

  add_option(:offset, 'offset ЧИСЛО',
             'Показывать с ЧИСЛО+1 аудиозаписи')

  add_option(:dl, 'dl yes',
             'Не добавлять аудиозапись(и) в iTunes. Просто скачать их')
end