MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / read_command_line

Function read_command_line

tools/update_selenoid_browsers.py:24–39  ·  view source on GitHub ↗

Read the command line arguments. Returns: ArgumentParser: The parsed arguments object

()

Source from the content-addressed store, hash-verified

22
23
24def read_command_line():
25 """Read the command line arguments.
26 Returns:
27 ArgumentParser: The parsed arguments object
28
29 """
30 parser = argparse.ArgumentParser(
31 description='Get latest browser images(chrome & firefox) for selenoid.'
32 'e.g. - --chrome /usr/bin/google-chrome --firefox '
33 '/usr/bin/firefox')
34 parser.add_argument("--chrome", metavar="CHROME",
35 help="the Chrome executable path")
36 parser.add_argument("--firefox", metavar="FIREFOX",
37 help="the firefox executable path")
38 args_val = parser.parse_args()
39 return args_val
40
41
42def get_browser_version(browser_name, executable_path):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected