aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-shell.py
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2023-11-01 19:18:24 +0100
committerlaforge <laforge@osmocom.org>2023-11-02 21:46:13 +0000
commit0ba3fd996aa4c72118bc670f067596930d9d173c (patch)
tree3cbcac3bf495a16a6d582fb3e9492f6de1887eb4 /pySim-shell.py
parent3d16fdd8daaaa8e9fb677481857d0f9f37b83be7 (diff)
pySim-shell: Add copyright statement and link to online manual to banner
This way the users are reminded where they can go to read the manual. Change-Id: Ie86822e73bccb3c585cecc818d4462d4ca6e43c2
Diffstat (limited to 'pySim-shell.py')
-rwxr-xr-xpySim-shell.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pySim-shell.py b/pySim-shell.py
index bbb14b2..c02555f 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -174,6 +174,9 @@ class Settable2Compat(cmd2.Settable):
class PysimApp(Cmd2Compat):
CUSTOM_CATEGORY = 'pySim Commands'
+ BANNER = """Welcome to pySim-shell!
+(C) 2021-2023 by Harald Welte, sysmocom - s.f.m.c. GmbH and contributors
+Online manual available at https://downloads.osmocom.org/docs/pysim/master/html/shell.html """
def __init__(self, card, rs, sl, ch, script=None):
if version.parse(cmd2.__version__) < version.parse("2.0.0"):
@@ -184,7 +187,7 @@ class PysimApp(Cmd2Compat):
# pylint: disable=unexpected-keyword-arg
super().__init__(persistent_history_file='~/.pysim_shell_history', allow_cli_args=False,
auto_load_commands=False, startup_script=script, **kwargs)
- self.intro = style('Welcome to pySim-shell!', fg=RED)
+ self.intro = style(self.BANNER, fg=RED)
self.default_category = 'pySim-shell built-in commands'
self.card = None
self.rs = None