lib/bio-gem/mod/jeweler/options.rb in bio-gem-1.3.4 vs lib/bio-gem/mod/jeweler/options.rb in bio-gem-1.3.5

- old
+ new

@@ -22,10 +22,11 @@ self[:github_username] = git_config['github.user'] self[:github_token] = git_config['github.token'] require 'optparse' @opts = OptionParser.new do |o| + self[:directory]='.' o.banner = "Usage: #{File.basename($0)} [options] reponame\ne.g. #{File.basename($0)} the-perfect-gem" o.on('--directory [DIRECTORY]', 'specify the directory to generate into') do |directory| self[:directory] = directory end @@ -58,9 +59,13 @@ end o.on('--with-engine [NAMESPACE]', 'create a Rails engine with the namespace given in input. Set default database creation') do |namespace| self[:biogem_engine] = namespace self[:biogem_db] = true + end + + o.on('--with-wrapper', 'setup the biogem to be a wrapper around a command line application') do + self[:wrapper] = true end o.separator "" o.separator "These options are for Jeweler"