lib/mireru/command/mireru.rb in mireru-0.1.3 vs lib/mireru/command/mireru.rb in mireru-0.1.4
- old
+ new
@@ -47,11 +47,11 @@
private
def files_from_arguments(arguments)
if arguments.empty?
files = Dir.glob("*")
- elsif purge_option(arguments, /\A(-d|--deep)\z/)
+ elsif purge_option(arguments, /\A(-R|--recursive|-d|--deep)\z/)
if arguments.empty?
files = Dir.glob("**/*")
else
files = []
arguments.each do |f|
@@ -89,12 +89,12 @@
def write_help_message
message = <<-EOM
#{USAGE}
If no argument, then search current directory.
Options:
- -d, --deep
- deep search as "**/*"
+ -R, --recursive
+ recursive search as "**/*"
-f, --font NAME
set font such as "Monospace 16"
Keybind:
n: next
p: prev
@@ -133,11 +133,11 @@
message = <<-EOM
Warning: file not found.
#{USAGE}
If no argument, then search current directory.
Options:
- -d, --deep
- deep search as "**/*"
+ -R, --recursive
+ recursive search as "**/*"
-f, --font NAME
set font such as "Monospace 16"
EOM
@logger.error(message)
end