aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-12-19 22:05:54 -0500
committerRalph Amissah <ralph@amissah.com>2011-12-19 22:07:38 -0500
commit598c4fe868aa8861129fb1d6ed8dc12a3c088989 (patch)
tree00e4650a1bf679af57a3aee07262bffa69fffd13 /lib
parentv3: 3.1.9 version & changelog "opened" (diff)
v3: options, --find & --glob, use for general search in base directory
* cannot be limited by sub-directory, error message provided
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v3/options.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sisu/v3/options.rb b/lib/sisu/v3/options.rb
index ffd0da0f..b9d54123 100644
--- a/lib/sisu/v3/options.rb
+++ b/lib/sisu/v3/options.rb
@@ -131,7 +131,12 @@ module SiSU_commandline
if find_flag \
&& y !~ /^-/ \
&& y =~ /\S+/
- f << y
+ if y !~/\//
+ f << y
+ else
+ find_flag=false
+ puts %{sub-directories "#{y}" cannot be provided for --find or --glob at this time}
+ end
end
end
r=Px[:lng_lst].join('|')