Sha256: 06e7dc19cf392967c1fd87c48018206f9a72b026b0c1977c4b00dfbded6f2e90

Contents?: true

Size: 1005 Bytes

Versions: 3

Compression:

Stored size: 1005 Bytes

Contents

#
# check to make sure we can find the root directory of the platform
#
module LeapCli; module Commands

  extend self # this is a trick to make all instance methods
              # available as class methods.

  desc 'Verbosity level 0..5'
  arg_name 'LEVEL'
  default_value '1'
  flag [:v, :verbose]

  desc 'Override default log file.'
  arg_name 'FILE'
  default_value nil
  flag :log

  desc 'Display version number and exit.'
  switch :version, :negatable => false

  desc 'Skip prompts and assume "yes".'
  switch :yes, :negatable => false

  desc 'Like --yes, but also skip prompts that are potentially dangerous to skip.'
  switch :force, :negatable => false

  desc 'Print full stack trace for exceptions and load `debugger` gem if installed.'
  switch [:d, :debug], :negatable => false

  desc 'Disable colors in output.'
  default_value true
  switch 'color', :negatable => true

  pre do |global,command,options,args|
    Bootstrap.setup_global_options(self, global)
    true
  end

end; end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
leap_cli-1.9.2 lib/leap_cli/commands/pre.rb
leap_cli-1.9.1 lib/leap_cli/commands/pre.rb
leap_cli-1.9 lib/leap_cli/commands/pre.rb