diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2021-07-01 08:11:15 +0200 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-07-01 14:45:34 -0400 |
commit | c7d3644c0c64e9e5439806250592a55c8e2de26f (patch) | |
tree | 9af46c1c06ad557bc12f8bef38ffafabef716288 | |
parent | 8dd6476248bae02a6cf987a03d451090972199d0 (diff) | |
download | sos-c7d3644c0c64e9e5439806250592a55c8e2de26f.tar.gz |
[report,collect] unify --map-file arguments
Unify --map[-file] argument among report/collect/clean.
Resolves: #2602
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/cleaner/__init__.py | 2 | ||||
-rw-r--r-- | sos/collector/__init__.py | 2 | ||||
-rw-r--r-- | sos/report/__init__.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sos/cleaner/__init__.py b/sos/cleaner/__init__.py index 7414b55e..4c983782 100644 --- a/sos/cleaner/__init__.py +++ b/sos/cleaner/__init__.py @@ -192,7 +192,7 @@ third party. 'file for obfuscation')) clean_grp.add_argument('--no-update', dest='no_update', default=False, action='store_true', - help='Do not update the --map file with new ' + help='Do not update the --map-file with new ' 'mappings from this run') clean_grp.add_argument('--keep-binary-files', default=False, action='store_true', diff --git a/sos/collector/__init__.py b/sos/collector/__init__.py index 7b8cfcf7..6d96d692 100644 --- a/sos/collector/__init__.py +++ b/sos/collector/__init__.py @@ -427,7 +427,7 @@ class SoSCollector(SoSComponent): cleaner_grp.add_argument('--no-update', action='store_true', default=False, dest='no_update', help='Do not update the default cleaner map') - cleaner_grp.add_argument('--map', dest='map_file', + cleaner_grp.add_argument('--map-file', dest='map_file', default='/etc/sos/cleaner/default_mapping', help=('Provide a previously generated mapping' ' file for obfuscation')) diff --git a/sos/report/__init__.py b/sos/report/__init__.py index 7ad2d24a..411c4eb0 100644 --- a/sos/report/__init__.py +++ b/sos/report/__init__.py @@ -341,7 +341,7 @@ class SoSReport(SoSComponent): cleaner_grp.add_argument('--no-update', action='store_true', default=False, dest='no_update', help='Do not update the default cleaner map') - cleaner_grp.add_argument('--map', dest='map_file', + cleaner_grp.add_argument('--map-file', dest='map_file', default='/etc/sos/cleaner/default_mapping', help=('Provide a previously generated mapping' ' file for obfuscation')) |