Merge pull request #4539 from MikeMcQuaid/tab-options-handling

tab: correctly handle options request.
This commit is contained in:
Mike McQuaid 2018-07-23 20:16:42 +01:00 committed by GitHub
commit 758aefaa27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]