Alphabetize arguments.
This commit is contained in:
parent
51e87c6b0a
commit
6e9c334a9d
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue