From 29599f39caf1c440e702a037d0ece9b760327220 Mon Sep 17 00:00:00 2001 From: konsthol Date: Tue, 28 Mar 2023 22:07:11 +0300 Subject: [PATCH] It's time to go home --- secdep.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/secdep.py b/secdep.py index 5e8a270..65396b9 100755 --- a/secdep.py +++ b/secdep.py @@ -1502,8 +1502,11 @@ def ssh(provider, port=None, awsRegion=None): break ssh.close() -if args.list and args.ssh or args.action and args.ssh: - console.print("No need for [u]--list[/u] when using [u]--ssh[/u] or [u]--action[/u]", style="bold red") +if args.action and args.ssh: + console.print("You can\'t use [u]--ssh[/u] when using [u]--action[/u]", style="bold red") + exit(0) +if args.list and args.ssh: + console.print("You can\'t use [u]--ssh[/u] when using [u]--list[/u]", style="bold red") exit(0) if args.awsregion and args.provider != "aws": console.print("AWS region flag as the name suggests only goes with the aws provider", style="bold red")