lib/command/backup.rb in narou-3.2.5.1 vs lib/command/backup.rb in narou-3.3.0

- old
+ new

@@ -1,6 +1,7 @@ -# -*- coding: utf-8 -*- +# frozen_string_literal: true + # # Copyright 2013 whiteleaf. All rights reserved. # require_relative "../database" @@ -58,13 +59,10 @@ zipfilename end def execute(argv) super - if argv.empty? - puts @opt.help - return - end + display_help! if argv.empty? tagname_to_ids(argv) require "zip" argv.each_with_index do |target, i| Helper.print_horizontal_rule if i > 0 data = Downloader.get_data_by_target(target)