Skip to content

Instantly share code, notes, and snippets.

@Newbrict
Created August 7, 2018 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Newbrict/53b40a0c3bdf947c0143919be833c2c5 to your computer and use it in GitHub Desktop.
Save Newbrict/53b40a0c3bdf947c0143919be833c2c5 to your computer and use it in GitHub Desktop.
# -*- 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