summaryrefslogtreecommitdiff
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.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/pre.rb b/lib/leap_cli/commands/pre.rb
index 26dce40..f10eb68 100644
--- a/lib/leap_cli/commands/pre.rb
+++ b/lib/leap_cli/commands/pre.rb
@@ -18,6 +18,9 @@ module LeapCli
desc 'Display version number and exit'
switch :version, :negatable => false
+ desc 'Skip prompts and assume "yes"'
+ switch :yes, :negatable => false
+
pre do |global,command,options,args|
#
# set verbosity