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

@ -274,4 +274,10 @@ class LishCommander(Exit, ShellCommander, LogCommander):
self.print_color(PURPLE, "License: GNU Affero General Public License Version 3.0") self.print_color(PURPLE, "License: GNU Affero General Public License Version 3.0")
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'''