Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# -*- coding: utf-8 -*-
import sys
import argparse
def process_arguments(argv):
parser = argparse.ArgumentParser(description="Template Python Application")
parser.add_argument('--ip',
metavar='IP_ADDRESS',
dest='ip_address',
required=True,
help="The IP Address to connect to")
return parser.parse_args(argv[1:])
def main(argv):
args = process_arguments(argv)
return 0
if __name__ == '__main__':
sys.exit(main(sys.argv))
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.