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

Function read_command_line

tools/get_chromedriver.py:61–78  ·  view source on GitHub ↗

Read the command line arguments. The 'chrome' argument is now removed.

()

Source from the content-addressed store, hash-verified

59
60
61def read_command_line():
62 """Read the command line arguments.
63 The 'chrome' argument is now removed."""
64 parser = argparse.ArgumentParser(
65 description=(
66 'Auto-detects Chrome version, gets the correct Chromedriver '
67 'using Chrome for Testing, and saves it.'
68 )
69 )
70
71 # Only accept the directory argument
72 parser.add_argument(
73 'directory',
74 metavar='DIRECTORY',
75 help='the directory in which to save chromedriver'
76 )
77
78 return parser.parse_args()
79
80
81def get_chrome_version():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected