small fixes for q7s-cp script
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
This commit is contained in:
parent
e3dc1c9a74
commit
39f0db1db6
@ -4,6 +4,9 @@ import os
|
||||
import sys
|
||||
|
||||
|
||||
DEFAULT_PORT = 1539
|
||||
|
||||
|
||||
def main():
|
||||
args = handle_args()
|
||||
cmd = build_cmd(args)
|
||||
@ -20,7 +23,7 @@ def prompt_ssh_key_removal():
|
||||
do_remove_key = input(
|
||||
"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)
|
||||
port = 0
|
||||
while True:
|
||||
@ -54,7 +57,7 @@ def handle_args():
|
||||
"If files are copied back to host, will be current directory by 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(
|
||||
"-i",
|
||||
"--invert",
|
||||
|
Loading…
x
Reference in New Issue
Block a user