From 0fe9364d8d2b8567d5927c843b3bab33500a3971 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 24 Jun 2023 12:02:41 -0700 Subject: [PATCH] Use betterhelp. --- crop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crop.py b/crop.py index b33a706..5c5a281 100644 --- a/crop.py +++ b/crop.py @@ -2,6 +2,7 @@ import argparse import PIL.Image import sys +from voussoirkit import betterhelp from voussoirkit import pathclass from voussoirkit import pipeable @@ -52,8 +53,7 @@ def main(argv): parser.add_argument('--quality', type=int, default=100) parser.set_defaults(func=crop_argparse) - args = parser.parse_args(argv) - return args.func(args) + return betterhelp.go(parser, argv) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:]))