From 6766996fcdd151d828611b08917b3e5dd36b8bfe Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Thu, 28 Dec 2017 13:42:37 -0600 Subject: [PATCH] improved invalid command messages --- onionr.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/onionr.py b/onionr.py index 7f667a58..82d7474b 100755 --- a/onionr.py +++ b/onionr.py @@ -18,10 +18,6 @@ import sys, os, threading, configparser, base64, random import gui, api, colors from colors import Colors -# Detect python 2 -if sys.version.major == '2': - print "Onion requires Python 3" - class Onionr: def __init__(self): colors = Colors() @@ -63,6 +59,8 @@ class Onionr: self.showStats() elif command == 'help' or command == '--help': self.showHelp() + elif command == '': + print('Do', sys.argv[0], ' --help for Onionr help.') else: print(colors.RED, 'Invalid Command', colors.RESET) return