Skip to content

Commit

Permalink
Update version_bump.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed Sep 21, 2020
1 parent e1783e1 commit 1932879
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions script/version_bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
# Avoids spurious error messages if no logger is configured by the user
logging.getLogger(__name__).addHandler(logging.NullHandler())

# logging.basicConfig(level=logging.DEBUG)

_LOGGER = logging.getLogger(__name__)

VERSION = "1.2.0"
Expand Down Expand Up @@ -214,6 +212,9 @@ def main():
parser = argparse.ArgumentParser(
description=f"Bump version of Python package. Version {VERSION}"
)
parser.add_argument(
"-v", "--verbose", action="store_true", help="Enable debugging output.",
)
parser.add_argument(
"type",
help="The type of the bump the version to.",
Expand All @@ -237,6 +238,9 @@ def main():
)
arguments = parser.parse_args()

if arguments.verbose:
_LOGGER.setLevel(logging.DEBUG)

if arguments.dry_run:
print("!!! Dry Run !!! No Files Was Changed")

Expand Down

0 comments on commit 1932879

Please sign in to comment.