Added basic help setup
This commit is contained in:
parent
47fb6ee6a9
commit
bd7ad4838d
14
HTTPy.py
14
HTTPy.py
@ -8,8 +8,16 @@ partDomain = ""
|
||||
running = 1
|
||||
pingOn = "P"
|
||||
whoOn = "W"
|
||||
phrases = ["ping", "whois", "quit", "clear"]
|
||||
phrases = ["ping", "whois", "quit", "clear", "help"]
|
||||
|
||||
def printHelp():
|
||||
print "========================================================"
|
||||
print "= help - This screen ="
|
||||
print " clear - Clears the screen ="
|
||||
print " ping - Enables/Disables pinging the IP Address ="
|
||||
print "========================================================"
|
||||
print "========================================================"
|
||||
|
||||
def iterate(inArray, pre):
|
||||
count = 0
|
||||
while count != len(inArray) - 1:
|
||||
@ -70,7 +78,9 @@ while running == 1:
|
||||
whoOn = "W"
|
||||
if inInput == "clear":
|
||||
subprocess.call("clear")
|
||||
if inInput == "" or inInput == "ping" or inInput == "whois" or inInput == "clear":
|
||||
if inInput == "help":
|
||||
printHelp()
|
||||
if inInput == "" or inInput == "ping" or inInput == "whois" or inInput == "clear" or inInput == "help":
|
||||
pass
|
||||
else:
|
||||
if running == 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user