MCPcopy
hub / github.com/n0a/telegram-get-remote-ip / parse_arguments

Function parse_arguments

tg_get_ip.py:178–183  ·  view source on GitHub ↗

Parse command-line arguments.

()

Source from the content-addressed store, hash-verified

176
177
178def 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
186def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected