desc "Create an issue for the current project." command 'issue' do |c| config = Octopolo::Config.parse user_config = Octopolo::UserConfig.parse c.desc "Use $EDITOR to update PR description before creating" c.switch [:e, :editor], :default_value => user_config.editor c.action do |global_options, options, args| require_relative '../scripts/issue' options = global_options.merge(options) Octopolo::Scripts::Issue.execute options end end