diff options
-rw-r--r-- | sos/options.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sos/options.py b/sos/options.py index 1eda55d6..a014a022 100644 --- a/sos/options.py +++ b/sos/options.py @@ -186,9 +186,18 @@ class SoSOptions(): if 'verbose' in odict.keys(): odict['verbosity'] = int(odict.pop('verbose')) # convert options names + # unify some of them if multiple variants of the + # cmdoption exist + rename_opts = { + 'name': 'label', + 'plugin_option': 'plugopts', + 'profile': 'profiles' + } for key in list(odict): if '-' in key: odict[key.replace('-', '_')] = odict.pop(key) + if key in rename_opts: + odict[rename_opts[key]] = odict.pop(key) # set the values according to the config file for key, val in odict.items(): if isinstance(val, str): |