aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/shift.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/shift.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/shift.py b/bin/shift.py
index b837c53..94db333 100644
--- a/bin/shift.py
+++ b/bin/shift.py
@@ -25,11 +25,11 @@ def _main_shift(
else:
image.save(output_path, output)
-def _parse_direction(src):
+def _parse_direction(s):
try:
- return Direction(src)
+ return Direction(s)
except ValueError:
- raise argparse.ArgumentTypeError('invalid direction: ' + src)
+ raise argparse.ArgumentTypeError('invalid direction: ' + s)
def _parse_args(args=sys.argv):
parser = argparse.ArgumentParser(