added license using less as a pager. maybe needs to be implemented using urwid for cross platform compatibility

This commit is contained in:
Johannes Findeisen 2013-10-20 14:47:51 +02:00
commit 061bc22691

View file

@ -275,3 +275,9 @@ class LishCommander(Exit, ShellCommander, LogCommander):
def help_about(self): def help_about(self):
print '''Show information about Linspector''' print '''Show information about Linspector'''
def do_license(self, text):
os.system("less " + os.path.dirname(os.path.abspath(__file__)) + "/../../LICENSE")
def help_license(self):
print '''Show license information'''