1+ from argparse import ArgumentParser
2+ from build_assets .PathResolverAction import PathResolverAction
3+
4+
5+ def get_selenium_runner_args (peek_mode = False ):
6+ parser = ArgumentParser (description = "Upload svgs to Icomoon to create icon files." )
7+
8+ parser .add_argument ("--headless" ,
9+ help = "Whether to run the browser in headless/no UI mode" ,
10+ action = "store_true" )
11+
12+ parser .add_argument ("geckodriver_path" ,
13+ help = "The path to the firefox executable file" ,
14+ action = PathResolverAction )
15+
16+ parser .add_argument ("icomoon_json_path" ,
17+ help = "The path to the icomoon.json aka the selection.json created by Icomoon" ,
18+ action = PathResolverAction )
19+
20+ parser .add_argument ("devicon_json_path" ,
21+ help = "The path to the devicon.json" ,
22+ action = PathResolverAction )
23+
24+ parser .add_argument ("icons_folder_path" ,
25+ help = "The path to the icons folder" ,
26+ action = PathResolverAction )
27+
28+ parser .add_argument ("download_path" ,
29+ help = "The download destination of the Icomoon files" ,
30+ action = PathResolverAction )
31+
32+ if peek_mode :
33+ parser .add_argument ("--pr_title" ,
34+ help = "The title of the PR that we are peeking at" )
35+
36+ return parser .parse_args ()
0 commit comments