lib/modulesync/cli.rb in modulesync-0.8.2 vs lib/modulesync/cli.rb in modulesync-0.9.0

- old
+ new

@@ -51,12 +51,12 @@ class_option :negative_filter, :aliases => '-x', :desc => 'A regular expression to skip repositories.' class_option :branch, :aliases => '-b', - :desc => 'Branch name to make the changes in. Defaults to master.', - :default => CLI.defaults[:branch] || 'master' + :desc => 'Branch name to make the changes in. Defaults to the default branch of the upstream repository, but falls back to "master".', + :default => CLI.defaults[:branch] desc 'update', 'Update the modules in managed_modules.yml' option :message, :aliases => '-m', :desc => 'Commit message to apply to updated modules. Required unless running in noop mode.', @@ -104,9 +104,14 @@ option :tag_pattern, :desc => 'The pattern to use when tagging releases.' option :pre_commit_script, :desc => 'A script to be run before commiting', :default => CLI.defaults[:pre_commit_script] + option :fail_on_warnings, + :type => :boolean, + :aliases => '-F', + :desc => 'Produce a failure exit code when there are warnings (only has effect when --skip_broken is enabled)', + :default => false def update config = { :command => 'update' }.merge(options) config = Util.symbolize_keys(config) raise Thor::Error, 'No value provided for required option "--message"' unless config[:noop] || config[:message] || config[:offline]