Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Commit

Permalink
Hotfix release.
Browse files Browse the repository at this point in the history
- Fix a small refactoring accident.
- Remove some flaky code from an exception code.
  • Loading branch information
hbayindir committed Apr 26, 2022
1 parent 92081ea commit 19d9b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/magazine_renamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def convert_edition_string(edition_string):
# Let's parse some arguments.
argument_parser = argparse.ArgumentParser()

argument_parser.add_argument ('file_to_work_on', metavar='FILE', help='File(s) to be renamed.', type=str, nargs='+')
argument_parser.add_argument ('file', metavar='FILE', help='File(s) to be renamed.', type=str, nargs='+')

argument_parser.add_argument ('-s', '--simulate', help='Do not actually rename the files, but show actions and quit.', action='store_true', default=False)

Expand Down Expand Up @@ -130,7 +130,7 @@ def convert_edition_string(edition_string):
local_logger.debug('Logger setup completed.')
local_logger.debug('%s is starting.', sys.argv[0])
except IOError as exception:
print ('Something about disk I/O went bad: ' + str(exception), file=sys.stderr)
print ('Something about disk I/O went bad: ' + str(exception))
sys.exit(1)

# Let's print some information about what we're going to do.
Expand Down

0 comments on commit 19d9b1e

Please sign in to comment.