Skip to content

Commit

Permalink
Update trollop to optimist to remove deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagotex committed Sep 18, 2018
1 parent aa8e053 commit 26e3ac1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/yamllint/cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'logger'
require 'trollop'
require 'optimist'

module YamlLint
###
Expand Down Expand Up @@ -76,7 +76,7 @@ def lint_stream
end

def setup_options
Trollop::Parser.new do
Optimist::Parser.new do
banner 'Usage: yamllint [options] file1.yaml [file2.yaml ...]'
version(YamlLint::VERSION)

Expand All @@ -92,7 +92,7 @@ def setup_options
def parse_options
p = setup_options

@opts = Trollop.with_standard_exception_handling p do
@opts = Optimist.with_standard_exception_handling p do
p.parse(@argv)
end

Expand Down
2 changes: 1 addition & 1 deletion yamllint.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']

spec.add_dependency 'trollop', '~> 2'
spec.add_dependency 'optimist'

spec.add_development_dependency 'bundler', '~> 1.7'
spec.add_development_dependency 'rake'
Expand Down

0 comments on commit 26e3ac1

Please # to comment.