Skip to content

Commit cb3fdbf

Browse files
committed
Consistent options grammar
1 parent ce6d571 commit cb3fdbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/manageiq/release.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,20 @@ def self.common_options(optimist, only: %i[repo repo_set dry_run], except: nil,
6666
subset = Array(only).map(&:to_sym) - Array(except).map(&:to_sym)
6767

6868
if subset.include?(:repo_set)
69-
optimist.opt :repo_set, "The repo set to work with.", :type => :string, :default => repo_set_default, :short => "s"
69+
optimist.opt :repo_set, "The repo set to work with", :type => :string, :default => repo_set_default, :short => "s"
7070
end
7171
if subset.include?(:repo)
72-
msg = "Individual repo(s) to work with."
72+
msg = "Individual repo(s) to work with"
7373
if subset.include?(:repo_set)
7474
sub_opts = {}
75-
msg << " Overrides --repo-set."
75+
msg << "; Overrides --repo-set"
7676
else
7777
sub_opts = {:required => true}
7878
end
7979
optimist.opt :repo, msg, sub_opts.merge(:type => :strings)
8080
end
8181
if subset.include?(:dry_run)
82-
optimist.opt :dry_run, "Execute without making changes.", :default => false
82+
optimist.opt :dry_run, "Execute without making changes", :default => false
8383
end
8484
end
8585

0 commit comments

Comments
 (0)