-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTemplate_Basic.py
More file actions
31 lines (24 loc) · 880 Bytes
/
Template_Basic.py
File metadata and controls
31 lines (24 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/python
import sys
import os
import argparse
# Define Common System Variables
NEEDED_URL = "https://www.facebook.com/"
def things_you_want_to_do(args):
print("URL : {0}".format(args.url));
def init_arguments():
parser = argparse.ArgumentParser()
parser.add_argument("--arg1", dest="argument_1", help=" First Argument ")
parser.add_argument("--arg2", dest="argument_2", help=" Second Argument ")
parser.add_argument("--arg3", dest="argument_3", help=" Third Argument ")
return parser
def parse_arguments(parser):
args = parser.parse_args()
args.url = NEEDED_URL
return args
def main():
parser = init_arguments()
args = parse_arguments(parser)
things_you_want_to_do(args)
if __name__ == "__main__":
main()