Skip to content

Commit

Permalink
Bug fix for -y, --yearly command line option mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jul 15, 2015
1 parent 54c2245 commit 3ee041e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 Peter Odding
Copyright (c) 2015 Peter Odding

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ License

This software is licensed under the `MIT license`_.

© 2014 Peter Odding.
© 2015 Peter Odding.

Real example
------------
Expand Down
6 changes: 3 additions & 3 deletions rotate_backups.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# rotate-backups: Simple command line interface for backup rotation.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: July 3, 2014
# Last Change: July 15, 2015
# URL: https://github.com/xolox/python-rotate-backups

"""
Expand All @@ -21,7 +21,7 @@
"""

# Semi-standard module versioning.
__version__ = '0.1.1'
__version__ = '0.1.2'

# Standard library modules.
import collections
Expand Down Expand Up @@ -92,7 +92,7 @@ def main():
rotation_scheme['weekly'] = cast_to_retention_period(value)
elif option in ('-m', '--monthly'):
rotation_scheme['monthly'] = cast_to_retention_period(value)
elif option in ('-d', '--yearly'):
elif option in ('-y', '--yearly'):
rotation_scheme['yearly'] = cast_to_retention_period(value)
elif option in ('-i', '--ionice'):
value = value.lower().strip()
Expand Down

0 comments on commit 3ee041e

Please sign in to comment.