From 27bef6d29dcb774f0ee9bbd15b08ca46acc6833a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 2 Oct 2019 11:06:06 +0200 Subject: [PATCH] Parse partial section options as int --- flyingsnake/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flyingsnake/__main__.py b/flyingsnake/__main__.py index d220fb9..dbd96a9 100644 --- a/flyingsnake/__main__.py +++ b/flyingsnake/__main__.py @@ -30,13 +30,13 @@ def get_region_size(*, world, min_x, min_y, region_width, region_height): help="Draw the liquids present in the world.", default=None) @c.option("--paint/--no-paint", "draw_paint", help="Draw painted blocks with the paint color overlayed on them.", default=True) -@c.option("-x", "--x_coord", "min_x", +@c.option("-x", "--x_coord", "min_x", type=int, help="Min x coord for custom world rendering", default=None) -@c.option("-y", "--y_coord", "min_y", +@c.option("-y", "--y_coord", "min_y", type=int, help="Min y coord for custom world rendering", default=None) -@c.option("-w", "--region_width", "region_width", +@c.option("-w", "--region_width", "region_width", type=int, help="Width of region for custom world rendering", default=None) -@c.option("-h", "--region_height", "region_height", +@c.option("-h", "--region_height", "region_height", type=int, help="Height of region for custom world rendering", default=None) def flyingsnake(input_file: str, output_file: str,