Skip to content

Commit

Permalink
fix. Problem with --backupsuffix
Browse files Browse the repository at this point in the history
  • Loading branch information
tamere-allo-peter committed Mar 21, 2022
1 parent 89eba00 commit 0590819
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
version = 0.4.1
version = 0.4.2
name = yamlfixer-opt-nc
description = automates the fixing of problems reported by yamllint
long_description = file: README.md
Expand Down
2 changes: 1 addition & 1 deletion yamlfixer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import time

__version__ = "0.4.1"
__version__ = "0.4.2"
__author__ = "OPT-NC"
__license__ = "GPLv3+"
__copyright__ = "Copyright (C) 2021-%s %s" % (time.strftime("%Y",
Expand Down
3 changes: 0 additions & 3 deletions yamlfixer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ def run():
if cmdline.prog == "__main__.py":
cmdline.prog = "yamlfixer"
arguments = cmdline.parse_args()
if arguments.backupsuffix and not arguments.backup:
sys.stderr.write("ERROR: Option -B|--backupsuffix requires -b|--backup\n")
return EXIT_CMDLINEERROR
if arguments.listfixes:
return YAMLFixer(arguments).listfixes()
return YAMLFixer(arguments).fix()
Expand Down

0 comments on commit 0590819

Please sign in to comment.