Read the command line arguments. Returns: ArgumentParser: The parsed arguments object
()
| 22 | |
| 23 | |
| 24 | def 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 | |
| 42 | def get_browser_version(browser_name, executable_path): |
no outgoing calls
no test coverage detected