Parse command-line arguments.
()
| 176 | |
| 177 | |
| 178 | def parse_arguments(): |
| 179 | """Parse command-line arguments.""" |
| 180 | parser = argparse.ArgumentParser( |
| 181 | description='Determine the IP address of the interlocutor in the Telegram messenger.') |
| 182 | parser.add_argument('-i', '--interface', help='Network interface to use', default=None) |
| 183 | return parser.parse_args() |
| 184 | |
| 185 | |
| 186 | def main(): |