added license using less as a pager. maybe needs to be implemented using urwid for cross platform compatibility
This commit is contained in:
parent
3870ca7c50
commit
061bc22691
1 changed files with 7 additions and 1 deletions
|
|
@ -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'''
|
||||||
Loading…
Add table
Add a link
Reference in a new issue