Commit 3c545c55 authored by diesys's avatar diesys 🎈
Browse files

fixed help prompt

parent ff82c91a
......@@ -87,7 +87,9 @@ def parseArgv():
# calcs version-revision number
calcRevision()
if len(sys.argv) > 1:
if len(sys.argv) == 1:
promptHelp('')
elif len(sys.argv) > 1:
if re.search("^--install$", sys.argv[1]):
promptHelp('Installing ...',['asciiart', 'version'])
if len(sys.argv) == 3 and re.search("^git$", sys.argv[2]):
......@@ -123,9 +125,8 @@ def parseArgv():
state['simulate'] = True
else: # invalid syntax (missing arguments)
promptHelp('', ['usage', 'syntax_err'])
else:
promptHelp('')
state['validInput'] = False
# else:
# state['validInput'] = False
return state['validInput']
......@@ -164,3 +165,5 @@ if parseArgv(): # runs if the input's syntax was valid (and the inp
returned_value=run(cmd, shell=True)
Path.unlink(state['palette']) # deletes temp file
# else:
# promptHelp('')
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment