work on commands

master
Kevin Froman 2017-12-26 03:42:17 -06:00
parent 9b595d78f0
commit 5256670da2
2 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -14,14 +14,14 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
''' '''
import sys import sys, api, gui
class Onionr: class Onionr:
def __init__(self): def __init__(self):
command = '' command = ''
try: try:
command = sys.argv[1].lower() command = sys.argv[1].lower()
except IndexError: except IndexError:
pass command = ''
else: else:
if command == 'start': if command == 'start':
self.daemon() self.daemon()
@ -31,6 +31,8 @@ class Onionr:
self.showStats() self.showStats()
elif command == 'help' or command == '--help': elif command == 'help' or command == '--help':
self.showHelp() self.showHelp()
else:
help(Onionr)
return return
def daemon(self): def daemon(self):
return return