README.md in sickle-0.5.2 vs README.md in sickle-0.5.3
- old
+ new
@@ -44,9 +44,14 @@
include Sickle::Runner
global_flag :verbose # global flag, defaults to false
global_option :with_prefix # global option, defaults to nil
+ # optional before hook with access to global options
+ before do
+ $verbose = options[:verbose]
+ end
+
desc "install one of the available apps" # command description
flag :force # flag for `install` command
option :host, :default => "localhost" # option
def install(name)
if options[:force] # access options