diff --git a/cme/cmedb.py b/cme/cmedb.py index 529842cb..36151ffd 100644 --- a/cme/cmedb.py +++ b/cme/cmedb.py @@ -16,6 +16,7 @@ from sqlalchemy.ext.asyncio import create_async_engine from sqlalchemy.exc import SAWarning import csv import warnings +from textwrap import dedent # The following disables the InsecureRequests warning and the 'Starting new HTTPS connection' log message from requests.packages.urllib3.exceptions import InsecureRequestWarning @@ -84,6 +85,10 @@ def complete_export(text, line): return [s[offs:] for s in commands if s.startswith(mline)] +def print_help(help_string): + print(dedent(help_string)) + + class DatabaseNavigator(cmd.Cmd): def __init__(self, main_menu, database, proto): cmd.Cmd.__init__(self)