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:
10
.github/scripts/build_assets/util.py
vendored
10
.github/scripts/build_assets/util.py
vendored
@@ -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()
|
||||
|
Reference in New Issue
Block a user