Created
August 7, 2018 01:15
-
-
Save Newbrict/53b40a0c3bdf947c0143919be833c2c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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