From cf07862e2524b1981dbfab09b72e62d6d08d04c2 Mon Sep 17 00:00:00 2001 From: n3rada <72791564+n3rada@users.noreply.github.com> Date: Tue, 27 Feb 2024 22:44:38 +0100 Subject: [PATCH] Update cli.py --- toboggan/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toboggan/cli.py b/toboggan/cli.py index e2c08cf..f70b191 100644 --- a/toboggan/cli.py +++ b/toboggan/cli.py @@ -119,6 +119,11 @@ def console() -> None: parser.print_help() return + # Check for the presence of '-i' when '-s' or '-r' is specified + if (args.session or args.read_interval) and not args.interactive: + parser.error("[Toboggan] The -s and -r arguments require the -i (interactive) argument.") + + password_param = None password_content = None