bin/doit in doit-1.0.2 vs bin/doit in doit-1.0.3
- old
+ new
@@ -1,24 +1,24 @@
#! /usr/bin/env ruby
-lib = File.expand_path('../lib/', __dir__)
+lib = File.expand_path("../lib/", __dir__)
# $:.unshift lib unless $:.include?(lib)
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
-require 'doit'
-require 'micro-optparse'
-require 'globals'
-require 'what'
+require "doit"
+require "micro-optparse"
+require "globals"
+require "what"
options = Parser.new do |p|
- p.banner = 'Usage: doit script... [options] # execute locally or remotely'
+ p.banner = "Usage: doit script... [options] # execute locally or remotely"
p.version = "doit #{Globals::VERSION}"
- p.option :list, 'Lists available scripts'
- p.option :each, 'Lists each remote command (no execution)'
- p.option :remote, 'Remote host or comma separated hosts',
- default: '...', optional: true
- p.option :silent, 'Run silently; suppress output'
- p.option :verbose, 'Enable verbose output'
- p.option :noop, 'Suppress execution of commannds'
+ p.option :list, "Lists available scripts"
+ p.option :each, "Lists each remote command (no execution)"
+ p.option :remote, "Remote host or comma separated hosts",
+ default: "...", optional: true
+ p.option :silent, "Run silently; suppress output"
+ p.option :verbose, "Enable verbose output"
+ p.option :noop, "Suppress execution of commannds"
end.process!
Doit.start(options)