Read the command line arguments. The 'chrome' argument is now removed.
()
| 59 | |
| 60 | |
| 61 | def 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 | |
| 81 | def get_chrome_version(): |