lib/leap_cli/commands/pre.rb in leap_cli-1.2.5 vs lib/leap_cli/commands/pre.rb in leap_cli-1.5.0

- old
+ new

@@ -18,10 +18,17 @@ switch :version, :negatable => false desc 'Skip prompts and assume "yes"' switch :yes, :negatable => false + desc 'Enable debugging library (leap_cli development only)' + switch :debug, :negatable => false + + desc 'Disable colors in output' + default_value true + switch 'color', :negatable => true + pre do |global,command,options,args| # # set verbosity # LeapCli.log_level = global[:verbose].to_i @@ -57,9 +64,10 @@ # set log file # LeapCli.log_file = global[:log] || LeapCli.leapfile.log LeapCli::Util.log_raw(:log) { $0 + ' ' + ORIGINAL_ARGV.join(' ')} log_version + LeapCli.log_in_color = global[:color] # # load all the nodes everything # manager