Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Trollop with Optimist #94

Merged
merged 1 commit into from
Sep 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions bin/filewatcher
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ require_relative '../lib/filewatcher'
require_relative '../lib/filewatcher/env'
require_relative '../lib/filewatcher/runner'
require_relative '../lib/filewatcher/version'
require 'trollop'

options = Trollop.options do
require 'optimist'

options = Optimist.options do
version "filewatcher, version #{Filewatcher::VERSION} by Thomas Flemming 2016"
banner File.read File.join(__dir__, 'banner.txt')

Expand All @@ -32,7 +33,7 @@ options = Trollop.options do
short: 's', type: :boolean, default: false
end

Trollop.die Trollop.educate if ARGV.empty?
Optimist.die Optimist.educate if ARGV.empty?

files = ARGV[0..-2]

Expand Down
2 changes: 1 addition & 1 deletion filewatcher.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |s|
s.licenses = ['MIT']

s.add_development_dependency 'bacon', '~> 1.2'
s.add_runtime_dependency 'trollop', '~> 2.1', '>= 2.1.2'
s.add_runtime_dependency 'optimist', '~> 3.0'
s.add_development_dependency 'rake', '~> 12.0'
s.add_development_dependency 'rubocop', '~> 0.57'
end