From dcb59ee9de6818351c4f6bed240210c3299f35eb Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Fri, 4 Feb 2022 12:43:11 +0100 Subject: [PATCH] [doc] specify what -r defaults are --- README.md | 2 +- gen_png.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bdc72f3..e7db7eb 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,6 @@ gen_png.py [OPTION] -h, --help Shows this help message. -a, --all Generate PNGs of all SVGs. -s, --specific S [S ...] Generate PNGs for each S in the "svg" folder. The '.svg' suffix is optional. --r, --resolution R [R ...] Custom resolutions that will be generated instead of the defaults. +-r, --resolution R [R ...] Custom resolutions that will be generated instead of the defaults (72, 512, 1024). -g, --git Generates PNGs of SVGs that changed since last auto tag and creates a git commit with them. Requires 'git' to be installed and located in PATH. ``` diff --git a/gen_png.py b/gen_png.py index 0f923ea..056e1eb 100755 --- a/gen_png.py +++ b/gen_png.py @@ -93,7 +93,7 @@ def main(): help="Generate PNGs for each S in the \"svg\" folder. " + "The '.svg' suffix is optional.") parser.add_argument("-r", "--resolution", metavar='R', type=int, nargs="+", - help="Custom resolutions that will be generated instead of the defaults.") + help="Custom resolutions that will be generated instead of the defaults (72, 512, 1024).") mutex_group.add_argument("-g", "--git", action="store_true", help="Generates PNGs of SVGs that changed since last auto tag and creates a git commit with them. " + "Requires 'git' to be installed and located in PATH.")