From 5256670da2cf09f156c384183481f0699e65d413 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 26 Dec 2017 03:42:17 -0600 Subject: [PATCH] work on commands --- __pycache__/onionr.cpython-36.pyc | Bin 0 -> 404 bytes onionr.py | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 __pycache__/onionr.cpython-36.pyc diff --git a/__pycache__/onionr.cpython-36.pyc b/__pycache__/onionr.cpython-36.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70b56566d0c3b25049ed5fa5446846da358c3873 GIT binary patch literal 404 zcmYjNu};G<5IsAAMimtcV(yxy8M-1=#K0B?CbFEO*tC)2I5_PUM}`~?=D%+X4CJlyXqMLeh9}(s9O=nYa#^|Jb)5Pet?qivJxtJf;`<%=JniY zqZ<+(OH#KYj8{Y&NDP&X<|>IsfBx9Fws(yn2^T*Z_k=MeQa}Sl`AOu{QFkwnV*~x> z#l{+447GE1TMW*wU2RO;uZx&k*bu%L-h77G_U#stGe?d9vA>M6#o?~ZQx^8M(TIME zXsp_G++QHR?&>byxU<6sr(GQ9I^LXrSQwCr@LuN9PY{)D5W~SgQ}`5i`s^moy5*x_ GPsJZ@MO1SD literal 0 HcmV?d00001 diff --git a/onionr.py b/onionr.py index cedd7f88..d5331aa6 100755 --- a/onionr.py +++ b/onionr.py @@ -14,14 +14,14 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . ''' -import sys +import sys, api, gui class Onionr: def __init__(self): command = '' try: command = sys.argv[1].lower() except IndexError: - pass + command = '' else: if command == 'start': self.daemon() @@ -31,6 +31,8 @@ class Onionr: self.showStats() elif command == 'help' or command == '--help': self.showHelp() + else: + help(Onionr) return def daemon(self): return