lib/awestruct/cli/options.rb in awestruct-0.4.6 vs lib/awestruct/cli/options.rb in awestruct-0.4.7
- old
+ new
@@ -18,10 +18,11 @@
attr_accessor :scaffold
attr_accessor :base_url
attr_accessor :profile
attr_accessor :deploy
attr_accessor :script
+ attr_accessor :verbose
def initialize()
@generate = nil
@server = false
@port = 4242
@@ -41,9 +42,12 @@
Options.new.parse! args
end
def parse!(args)
opts = OptionParser.new do |opts|
+ opts.on('-w', '--verbose', 'Enable verbose mode') do |verbose|
+ self.verbose = true
+ end
opts.on( '-i', '--init', 'Initialize a new project in the current directory' ) do |init|
self.init = init
self.generate = false
end
opts.on( '-f', '--framework FRAMEWORK', 'Specify a compass framework during initialization (bootstrap, blueprint, 960)' ) do |framework|