Alphabetize arguments.

This commit is contained in:
voussoir 2020-10-23 07:48:13 -07:00
parent 51e87c6b0a
commit 6e9c334a9d

View file

@ -52,9 +52,9 @@ def resize_argparse(args):
filename, filename,
args.new_x, args.new_x,
args.new_y, args.new_y,
scale=args.scale,
nearest_neighbor=args.nearest_neighbor,
inplace=args.inplace, inplace=args.inplace,
nearest_neighbor=args.nearest_neighbor,
scale=args.scale,
) )
def main(argv): def main(argv):
@ -63,9 +63,9 @@ def main(argv):
parser.add_argument('pattern') parser.add_argument('pattern')
parser.add_argument('new_x', nargs='?', type=int, default=None) parser.add_argument('new_x', nargs='?', type=int, default=None)
parser.add_argument('new_y', nargs='?', type=int, default=None) parser.add_argument('new_y', nargs='?', type=int, default=None)
parser.add_argument('--scale', dest='scale', type=float, default=None)
parser.add_argument('--nearest', dest='nearest_neighbor', action='store_true')
parser.add_argument('--inplace', dest='inplace', action='store_true') parser.add_argument('--inplace', dest='inplace', action='store_true')
parser.add_argument('--nearest', dest='nearest_neighbor', action='store_true')
parser.add_argument('--scale', dest='scale', type=float, default=None)
parser.set_defaults(func=resize_argparse) parser.set_defaults(func=resize_argparse)
args = parser.parse_args(argv) args = parser.parse_args(argv)