work on commands
parent
9b595d78f0
commit
5256670da2
Binary file not shown.
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue