improved invalid command messages
parent
c158d3804c
commit
6766996fcd
|
@ -18,10 +18,6 @@ import sys, os, threading, configparser, base64, random
|
||||||
import gui, api, colors
|
import gui, api, colors
|
||||||
from colors import Colors
|
from colors import Colors
|
||||||
|
|
||||||
# Detect python 2
|
|
||||||
if sys.version.major == '2':
|
|
||||||
print "Onion requires Python 3"
|
|
||||||
|
|
||||||
class Onionr:
|
class Onionr:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
colors = Colors()
|
colors = Colors()
|
||||||
|
@ -63,6 +59,8 @@ class Onionr:
|
||||||
self.showStats()
|
self.showStats()
|
||||||
elif command == 'help' or command == '--help':
|
elif command == 'help' or command == '--help':
|
||||||
self.showHelp()
|
self.showHelp()
|
||||||
|
elif command == '':
|
||||||
|
print('Do', sys.argv[0], ' --help for Onionr help.')
|
||||||
else:
|
else:
|
||||||
print(colors.RED, 'Invalid Command', colors.RESET)
|
print(colors.RED, 'Invalid Command', colors.RESET)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue