small fixes for q7s-cp script
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2024-04-30 13:50:22 +02:00
parent e3dc1c9a74
commit 39f0db1db6

View File

@ -4,6 +4,9 @@ import os
import sys import sys
DEFAULT_PORT = 1539
def main(): def main():
args = handle_args() args = handle_args()
cmd = build_cmd(args) cmd = build_cmd(args)
@ -20,7 +23,7 @@ def prompt_ssh_key_removal():
do_remove_key = input( do_remove_key = input(
"Do you want to remove problematic keys on localhost ([Y]/n)?: " "Do you want to remove problematic keys on localhost ([Y]/n)?: "
) )
if not do_remove_key.lower() in ["y", "yes", "1", ""]: if do_remove_key.lower() not in ["y", "yes", "1", ""]:
sys.exit(1) sys.exit(1)
port = 0 port = 0
while True: while True:
@ -54,7 +57,7 @@ def handle_args():
"If files are copied back to host, will be current directory by default", "If files are copied back to host, will be current directory by default",
default="", default="",
) )
parser.add_argument("-P", "--port", help="Target port", default=1535) parser.add_argument("-P", "--port", help="Target port", default=DEFAULT_PORT)
parser.add_argument( parser.add_argument(
"-i", "-i",
"--invert", "--invert",