summaryrefslogtreecommitdiff
path: root/lib/chef/application/base.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-03-11 19:12:34 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-03-11 19:12:34 -0700
commit34a1d7eec7206029c663d56097ba738a63608c31 (patch)
treea9d56b7a31a9a14688fc5d3e5d169b9caec8fdc8 /lib/chef/application/base.rb
parentdfd018cb04a2eae78e5cd8f7569dff4919e3769a (diff)
downloadchef-34a1d7eec7206029c663d56097ba738a63608c31.tar.gz
fix ruby 2.7 encoding bug and add --always-dump-stacktrace option
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/application/base.rb')
-rw-r--r--lib/chef/application/base.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/chef/application/base.rb b/lib/chef/application/base.rb
index c5bff9874e..bdc6055c31 100644
--- a/lib/chef/application/base.rb
+++ b/lib/chef/application/base.rb
@@ -1,5 +1,5 @@
#
-# Copyright:: Copyright 2008-2019, Chef Software Inc.
+# Copyright:: Copyright 2008-2020, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -100,6 +100,12 @@ class Chef::Application::Base < Chef::Application
description: "Set the log file location, defaults to STDOUT - recommended for daemonizing.",
proc: nil
+ option :always_dump_stacktrace,
+ long: "--[no-]always-dump-stacktrace",
+ boolean: true,
+ default: false,
+ description: "Always dump the stacktrace regardless of the log_level setting."
+
option :help,
short: "-h",
long: "--help",