1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-22 22:24:43 +02:00

Added zoomed in snapshot for peek scripts

This commit is contained in:
Thomas Bui
2020-12-28 18:32:49 -08:00
parent 4ec9d85805
commit eb6884db84
15 changed files with 159 additions and 28 deletions

View File

@@ -1,8 +1,7 @@
from pathlib import Path
from argparse import ArgumentParser
from build_assets.PathResolverAction import PathResolverAction
def get_commandline_args():
def get_commandline_args(peek_mode=False):
parser = ArgumentParser(description="Upload svgs to Icomoon to create icon files.")
parser.add_argument("--headless",
@@ -26,8 +25,11 @@ def get_commandline_args():
action=PathResolverAction)
parser.add_argument("download_path",
help="The path where you'd like to download the Icomoon files to",
help="The download destination of the Icomoon files",
action=PathResolverAction)
if peek_mode:
parser.add_argument("--pr_title",
help="The title of the PR that we are peeking at")
return parser.parse_args()
return parser.parse_args()