diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-08-21 11:06:10 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-08-21 11:06:10 -0700 |
commit | 4234e82751efb1822782e6e9f43d9b0438d8ecc4 (patch) | |
tree | c67531240c38d4d6a5ba231807b2e73e0a3c026a /lib | |
parent | d81f780663bd43f7c565f357094aea87f86262cc (diff) | |
download | mixlib-cli-4234e82751efb1822782e6e9f43d9b0438d8ecc4.tar.gz |
Optimize our requires
Avoid requiring things that are already defined. Rubygems is very slow at traversing the filesystem.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mixlib/cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/cli.rb b/lib/mixlib/cli.rb index b8f5748..a721abf 100644 --- a/lib/mixlib/cli.rb +++ b/lib/mixlib/cli.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require "optparse" +require "optparse" unless defined?(OptionParser) require_relative "cli/formatter" module Mixlib |