Remove --update flag. Just run update command separately first.

Because update has its own set of flags and passing them through
the render command adds unnecessary clutter.
master
voussoir 2021-03-23 12:02:57 -07:00
parent abf3bef705
commit b6f801568f
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 1 additions and 8 deletions

View File

@ -402,7 +402,7 @@ So, for example:
> pixelcanvas.py update ~1200.300--~900.600 > pixelcanvas.py update ~1200.300--~900.600
> pixelcanvas.py render 0.0--100.100 > pixelcanvas.py render 0.0--100.100
> pixelcanvas.py render ~100.~100--100.100 --update > pixelcanvas.py render ~100.~100--100.100 --scale 2
> pixelcanvas.py render ~1200.300--~900.600 --show > pixelcanvas.py render ~1200.300--~900.600 --show
''' '''
@ -449,9 +449,6 @@ render:
--show: --show:
Instead of saving the image, display it on the screen. Instead of saving the image, display it on the screen.
https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.show https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.show
--update:
Update the chunks before exporting them.
'''.strip(), '''.strip(),
) )
@ -512,9 +509,6 @@ def overview_argparse(args):
print() print()
def render_argparse(args): def render_argparse(args):
if args.do_update:
update_argparse(args)
coordinates = parse_coordinate_string(args.coordinates) coordinates = parse_coordinate_string(args.coordinates)
if args.is_chunks: if args.is_chunks:
chunk_range = coordinates chunk_range = coordinates
@ -564,7 +558,6 @@ def main(argv):
p_render = subparsers.add_parser('render') p_render = subparsers.add_parser('render')
p_render.add_argument('coordinates') p_render.add_argument('coordinates')
p_render.add_argument('--chunks', dest='is_chunks', action='store_true') p_render.add_argument('--chunks', dest='is_chunks', action='store_true')
p_render.add_argument('--update', dest='do_update', action='store_true')
p_render.add_argument('--show', dest='do_show', action='store_true') p_render.add_argument('--show', dest='do_show', action='store_true')
p_render.add_argument('--scale', dest='scale', default=1) p_render.add_argument('--scale', dest='scale', default=1)
p_render.set_defaults(func=render_argparse) p_render.set_defaults(func=render_argparse)