Use betterhelp.

This commit is contained in:
voussoir 2023-06-24 12:02:41 -07:00
parent a5a86313fa
commit 0fe9364d8d

View file

@ -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:]))