|
|
|
@ -31,6 +31,7 @@ def main():
|
|
|
|
|
parser.add_argument('--session', '-S',
|
|
|
|
|
help="Continue your previous conversation. Default is your previous conversation", nargs="?", const="default")
|
|
|
|
|
parser.add_argument('--clearsession', help="deletes indicated session. Use 'all' to delete all dessions")
|
|
|
|
|
parser.add_argument('--sessionlog', help="View the log of a session")
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
"--gui", help="Use the GUI (Node and npm need to be installed)", action="store_true")
|
|
|
|
|
parser.add_argument(
|
|
|
|
@ -133,6 +134,11 @@ def main():
|
|
|
|
|
else:
|
|
|
|
|
print(f"Session {args.clearsession} cleared")
|
|
|
|
|
sys.exit()
|
|
|
|
|
if args.sessionlog:
|
|
|
|
|
from .helper import Session
|
|
|
|
|
session = Session()
|
|
|
|
|
print(session.session_log(args.sessionlog))
|
|
|
|
|
sys.exit()
|
|
|
|
|
standalone = Standalone(args, args.pattern)
|
|
|
|
|
if args.list:
|
|
|
|
|
try:
|
|
|
|
|