Added basic help setup

This commit is contained in:
Benjamyn Love 2017-06-29 08:46:19 +10:00
parent 47fb6ee6a9
commit bd7ad4838d

View File

@ -8,7 +8,15 @@ partDomain = ""
running = 1 running = 1
pingOn = "P" pingOn = "P"
whoOn = "W" 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): def iterate(inArray, pre):
count = 0 count = 0
@ -70,7 +78,9 @@ while running == 1:
whoOn = "W" whoOn = "W"
if inInput == "clear": if inInput == "clear":
subprocess.call("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 pass
else: else:
if running == 0: if running == 0: