aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-05-28 18:38:46 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-06-20 18:01:21 +0100
commit21da9daf5a0c584a7406474f6f8cb763bd4c2c86 (patch)
treec41b15f56155706f8cc860bd31a5ba8fd32c49b9
parent9450063fe2e03a624a10896dfac74a6de7abbd8c (diff)
downloadsos-21da9daf5a0c584a7406474f6f8cb763bd4c2c86.tar.gz
[sosreport] make --debug a boolean
Debugging is either on or off: make the argument match the option. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/sosreport.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index b65080ec..672030aa 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -237,8 +237,7 @@ def _parse_args(args):
parser.add_argument("--config-file", action="store",
dest="config_file",
help="specify alternate configuration file")
- parser.add_argument("--debug", action="count",
- dest="debug",
+ parser.add_argument("--debug", action="store_true", dest="debug",
help="enable interactive debugging using the "
"python debugger")
parser.add_argument("--experimental", action="store_true",