Use betterhelp.
This commit is contained in:
parent
a5a86313fa
commit
0fe9364d8d
1 changed files with 2 additions and 2 deletions
4
crop.py
4
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:]))
|
||||
|
|
Loading…
Reference in a new issue