Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added -V verbose option

  • Loading branch information...
commit 7c4212b551122db0deebfc971a3e74f82a80aca5 1 parent 0a70682
Alex Young authored May 28, 2011
8  bin/carton
@@ -68,6 +68,11 @@ def parse_opts(args)
68 68
       options[:carton_task] = opt
69 69
     end
70 70
 
  71
+    opts.on("-V", "--verbose",
  72
+            "Verbose output") do |opts|
  73
+      options[:verbose] = true
  74
+    end
  75
+
71 76
     opts.on_tail("-h", "--help", "Show this message") do |opt|
72 77
       usage(opts)
73 78
     end
@@ -96,5 +101,6 @@ Carton::App.new.run(options[:build_path],
96 101
                     options[:appfile],
97 102
                     options[:globs],
98 103
                     options[:load_path],
99  
-                    options[:carton_task])
  104
+                    options[:carton_task],
  105
+                    options[:verbose])
100 106
 
4  lib/carton/app.rb
@@ -16,10 +16,12 @@ def run(build_path,
16 16
             appfile, 
17 17
             include_files, 
18 18
             load_path,
19  
-            carton_task=nil)
  19
+            carton_task=nil,
  20
+            verbose=false)
20 21
       # HACKHACKHACK
21 22
       if build_path && outputfile && appfile
22 23
         Task.new(build_path, outputfile, appfile, include_files, load_path)
  24
+        @app.options.trace = verbose
23 25
         @app.invoke_task(carton_task || outputfile)
24 26
       else
25 27
         help()

0 notes on commit 7c4212b

Please sign in to comment.
Something went wrong with that request. Please try again.