[cleanup] Refactor fixup

This commit is contained in:
pukkandan 2021-06-20 03:49:23 +05:30
parent 4e6767b5f2
commit fd7cfb6444
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
3 changed files with 62 additions and 99 deletions

View file

@ -1230,6 +1230,7 @@ def parseOpts(overrideArguments=None):
postproc.add_option(
'--fixup',
metavar='POLICY', dest='fixup', default=None,
choices=('never', 'ignore', 'warn', 'detect_or_warn'),
help=(
'Automatically correct known faults of the file. '
'One of never (do nothing), warn (only emit a warning), '