From bd7ad4838d9eeeab8a8eabb8cd97c26abbd25766 Mon Sep 17 00:00:00 2001 From: Benajmyn Love Date: Thu, 29 Jun 2017 08:46:19 +1000 Subject: [PATCH] Added basic help setup --- HTTPy.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/HTTPy.py b/HTTPy.py index 392397a..97fc6fd 100755 --- a/HTTPy.py +++ b/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: