lib/command/folder.rb in narou-3.2.5.1 vs lib/command/folder.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 "../helper"
@@ -25,13 +26,10 @@
EOS
end
def execute(argv)
super
- if argv.empty?
- puts @opt.help
- return
- end
+ display_help! if argv.empty?
tagname_to_ids(argv)
argv.each do |target|
dir = Downloader.get_novel_data_dir_by_target(target)
if dir
Helper.open_directory(dir)