lib/inch/cli/command/options/diff.rb in inch-0.4.6 vs lib/inch/cli/command/options/diff.rb in inch-0.4.7

- old
+ new

@@ -1,6 +1,6 @@ -require 'inch/utils/shell_helper' +require "inch/utils/shell_helper" module Inch module CLI module Command module Options @@ -16,11 +16,11 @@ [ "", "Shows changes in documentation between two revisions " \ "(defaults to last commit against current)", "", - "Example: " + "$ inch diff HEAD^..HEAD".cyan, + "Example: " + "$ inch diff HEAD^..HEAD".color(:cyan), "", description_hint_grades, description_hint_arrows ] end @@ -57,13 +57,15 @@ def diff_options(opts) opts.separator "" opts.separator "Diff options:" - opts.on("--since-last-commit", "Run diff against last commit (default)") do |count| + opts.on("--since-last-commit", + "Run diff against last commit (default)") do @before_rev = "HEAD" end - opts.on("-p", "--since-last-push", "Run diff against last pushed commit") do |count| + opts.on("-p", "--since-last-push", + "Run diff against last pushed commit") do @before_rev = get_pushed_rev @since_last_push = true end end