lib/eco/cli/scripting/args_helpers.rb in eco-helpers-2.0.21 vs lib/eco/cli/scripting/args_helpers.rb in eco-helpers-2.0.22
- old
+ new
@@ -73,13 +73,13 @@
# @return [String] the filename.
def get_file(key, required: false, should_exist: true)
filename = get_arg(key, with_param: true)
if !filename && required
- puts "You need to specify a file '#{key} file'"
+ puts "You need to specify a file or folder '#{key} file_or_folder'"
exit(1)
elsif !file_exists?(filename) && should_exist && required
- puts "This file doesn't exist '#{filename}'"
+ puts "This file/folder doesn't exist '#{filename}'"
exit(1)
end
filename = File.expand_path(filename) if filename && should_exist
filename