Merge pull request #4539 from MikeMcQuaid/tab-options-handling
tab: correctly handle options request.
This commit is contained in:
commit
758aefaa27
@ -211,6 +211,10 @@ class Tab < OpenStruct
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def any_args_or_options?
|
||||||
|
!used_options.empty? || !unused_options.empty?
|
||||||
|
end
|
||||||
|
|
||||||
def with?(val)
|
def with?(val)
|
||||||
option_names = val.respond_to?(:option_names) ? val.option_names : [val]
|
option_names = val.respond_to?(:option_names) ? val.option_names : [val]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user