This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 214fd78 Allow -ln option
214fd78 is described below
commit 214fd7854f01d1cb219da950901671ab46b3b551
Author: Sebb <[email protected]>
AuthorDate: Tue Jul 21 00:12:23 2020 +0100
Allow -ln option
---
lib/whimsy/asf/svn.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index 2bd884b..e8cc993 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -319,7 +319,8 @@ module ASF
end
Wunderbar.error "command #{command.first.inspect} is invalid" unless
command.first =~ %r{^[a-z]+$}
command.drop(1).each do |cmd|
- Wunderbar.error "Invalid option #{cmd.inspect}" unless cmd =~
%r{^(--[a-z][a-z=]+|-[a-z])$}
+ # Allow --option, -lnumber or -x
+ Wunderbar.error "Invalid option #{cmd.inspect}" unless cmd =~
%r{^(--[a-z][a-z=]+|-l\d+|-[a-z])$}
end
else
raise ArgumentError.new "command must be a String or an Array of
Strings"