aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/pre.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/commands/pre.rb')
-rw-r--r--lib/leap_cli/commands/pre.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/pre.rb b/lib/leap_cli/commands/pre.rb
index 346814b..26dce40 100644
--- a/lib/leap_cli/commands/pre.rb
+++ b/lib/leap_cli/commands/pre.rb
@@ -6,10 +6,15 @@ module LeapCli
module Commands
desc 'Verbosity level 0..2'
- arg_name 'level'
+ 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
@@ -40,6 +45,11 @@ module LeapCli
end
#
+ # set log file
+ #
+ LeapCli.log_file = global[:log] || LeapCli.leapfile.log
+
+ #
# load all the nodes everything
#
manager